Back | Reverse | Quick Reply | Post Reply |

HTML Tables (Word wrap not working in cells) HELP
Link | by Kenpachi on 2007-08-14 20:36:04 (edited 2007-08-27 20:09:53)
I'll try to keep it short.
How do I make text in a cell of a table word wrap?


This:<TABLE WIDTH="400"><TR><TD WIDTH="50%">This fits in cell</TD><TD WIDTH="50%">For some reason this doesn't word wrap even though I specified the width of the table and cell</TD></TR></TABLE>Turns into this:



This fits in cell For some reason this doesn't word wrap even though I specified the width of the table and cell


On the other hand, if I make a table without defining cells, it will word wrap:<TABLE WIDTH="400">Once this text gets to the edge of the table it will automatically go to the next line</TABLE>Turns into:
Once this text gets to the edge of the table it will automatically go to the next line


--
I'm not sure if there's a tag I need to know, or if this is just how Gendou works and there's nothing I can do about it, but help would be greatly appreciated.

I've been Googling around for an answer but I haven't had much luck. I'll keep searching while I wait for a reply here.


**It doesn't make a difference if I make the width of table and or cell a pixel number rather than a percent.

<zzzzzzzz---•
Still busy,
but trying to
stop by more.
•---/zzzzzzzz>

Re: HTML Tables (Word wrap not working in cells) HELP
Link | by Bleach984 on 2007-08-27 18:03:03
ok, you need to define a static width not a % width, at least I think thats your problem...

Signature goes here

Re: HTML Tables (Word wrap not working in cells) HELP
Link | by Kenpachi on 2007-08-27 20:14:21
A static width? Is that with pixels--WIDTH="400"--or is there a different way of doing it?

Note:
I noticed that the second table doesn't show up with Mozilla.

<zzzzzzzz---•
Still busy,
but trying to
stop by more.
•---/zzzzzzzz>

Re: HTML Tables (Word wrap not working in cells) HELP
Link | by loucypher on 2007-08-31 13:10:10 (edited 2007-08-31 14:47:09)
Add inline style style="white-space: normal;" to TD element.

<table width="400">
<tr>
<td width="50%">This fits in cell</td>
<td width="50%" style="white-space: normal;">For some reason this doesn't word wrap even though I specified the width of the table and cell</td>
</tr>
</table>


Result:

This fits in cellFor some reason this doesn't word wrap even though I specified the width of the table and cell



Re: HTML Tables (Word wrap not working in cells) HELP
Link | by Kenpachi on 2007-08-31 15:50:02
Thank you so much. I worship you

<zzzzzzzz---•
Still busy,
but trying to
stop by more.
•---/zzzzzzzz>

Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2024 Gendou | Terms of Use | Page loaded in 0.0035 seconds at 2024-05-04 09:22:16