954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HTML Text Wrap

Hi,

How do you text-wrap something like this:

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


Thanks,
Ashton.

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
 

use WORD-BREAK:BREAK-ALL;

It's working in IE but not in firefox.

michael_r
Newbie Poster
7 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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

.wrap { width: 125px; word-wrap: break-word; break-word: break-all; }
AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
 

It only works on CSS3 compatible browsers though.

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: