You are here: Can you force a 'break-word' wrap on a td without specifying its width? « HTML « IT news, forums, messages
Can you force a 'break-word' wrap on a td without specifying its width?

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">&nbsp;</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">&nbsp;</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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация