Member Avatar

Hi,

How do you text-wrap something like this:

<table width="10%">
<tr>
<td>IWANTTHISLINETOBEBROKENWHENITREACHESTHEENDOFTHECOLUMN</td>
</tr>
</table>

Thanks,
Ashton.

use WORD-BREAK:BREAK-ALL;

It's working in IE but not in firefox.

Member Avatar

Ya, that's what I found too. Well, something similar:

.wrap { width: 125px; word-wrap: break-word; break-word: break-all; }
Member Avatar

It only works on CSS3 compatible browsers though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.