1
gecko
text wrap xcgal
  • 2005/5/19 7:51

  • gecko

  • Not too shy to talk

  • Posts: 152

  • Since: 2004/10/11


i'm having problems with the text wrapping in xcgalley when you look at the intermediate pic.

It appears to be the information that is put in by user to describe the pic that causes the problem.

The titles also do this if they are too long.

It's fine in ie6 but blows the width right out in firefox, does anyone no what i should be looking for.

2
plavoie
Re: text wrap xcgal
  • 2005/6/1 19:43

  • plavoie

  • Just popping in

  • Posts: 4

  • Since: 2004/11/3


It is a css problem. Go in admin/Templates/xcgal menu.
Then, open the template "xcgal_dsiplay.html". In the file, you should see something like this:

-----
<{if $pic_caption !=''}>
<tr>
<td style="text-align: left;">
<div style="margin: 3px 10px 10px 10px;"><{$pic_caption}></div>
</td>
</tr>
<{/if}>
</table>
<!-- END img_desc -->
-----

The problem is simple, those tags are in a "td" cell that has a nowrap setting for white-space. You have to set it back to normal for the description. So, add the "white-space:normal;" attribute:

-----
<{if $pic_caption !=''}>
<tr>
<td style="text-align: left; white-space: normal;">
<div style="margin: 3px 10px 10px 10px;"><{$pic_caption}></div>
</td>
</tr>
<{/if}>
</table>
<!-- END img_desc -->
-----

For the title, you have probably something like:

----
<{if $pic_title!=''}>
<tr>
<th>
<{$pic_title}>
</th>
</tr>
<{/if}>
----

Do the same:

----
<{if $pic_title!=''}>
<tr>
<th style="white-space: normal;">
<{$pic_title}>
</th>
</tr>
<{/if}>
----

Hope it will help.

Login

Who's Online

158 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits