[thelist] HTML forced wrap

James Aylard webmaster at equilon-mrc.com
Mon Oct 22 16:05:21 CDT 2001


Javier,

> how can i make a table cell force the text to wrap within the cell's
> given size despite the content of the cell having long words, even
> longer than the column?

    This may not be the best answer, but one option is to use the
proprietary CSS property, "word-break: break-all;". Currently, this is IE 5+
only [1], but it is also part of the W3C CSS 3 "Text" module working draft
[2], meaning it will likely be officially adopted at some point in the near
future.

James Aylard

1.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/wordbre
ak.asp
2. http://www.w3.org/TR/WD-i18n-format/#word-break





More information about the thelist mailing list