Monday, December 29, 2008

HTML table cell text wrap

By default, if you set width of table cell, words would be wrapped automatically.  A single word would not be split into pieces. Usually, an English word is not so long. But, some "words" may be very long. For example, URLs without word delimiter would be considered as a single word.
CSS property word-break can be used to force split a long word into more than one line.
usage: work-break:break-all
Unfortunately, that does not work on FireFox :-( I searched the internet and found that FireFox does not support that property. Besides, there is no equivalent in FireFox.