Member Avatar for feoperro

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 for feoperro

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

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

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 meeting, networking, learning, and sharing knowledge.