Posted by CRON on 11/02/06 19:05
Anyone know a way to force a break-word wrap on a table cell without
specifying its width? I want it to just work the very same as a regular
wrap.
ie it breaks the word if it doesnt fit into the cell.
FOR EXAMPLE:
a normal table wrap::::::::::::::::::::::::::
<table width="500" border="1">
<tr>
<td width="350"> </td>
<td>this sentence wraps perfectly without specifying the cell
width</td>
</tr>
</table>
A break-word wrap on the same table:::::::::::::::::::::
<table width="500" border="1">
<tr>
<td width="350"> </td>
<td style="word-wrap:
break-word;">thisisaverylongwordthatdoesnotwrapandstretchesthecell!</td>
</tr>
</table>
table-layout:fixed works but its not really an option because it
overrides cell widths in IE half the time! Is there any other way to
get what I want?
thanks
Ciarán
Navigation:
[Reply to this message]
|