How can I allow text to wrap inside a word if necessary?

Posted by OrbMan on Stack Overflow See other posts from Stack Overflow or by OrbMan
Published on 2010-02-13T13:24:06Z Indexed on 2010/04/20 21:33 UTC
Read the original article Hit count: 295

Filed under:
|
|
|

I am looking for the best solution to allow text to wrap in the middle of a word if necessary. By best, I mean most browser-compatible, and will favor word breaks before it breaks inside a word.

It would also help if the markup looked nicer than mine (see my answer).

Edit:

Note this is specifically for user-generated content.

Edit 2:

About 25% of Firefox users on the site in question are still using v3.0 or below, so it is critical to support them. This is based on the last month worth of data (about 121,000 visits).

© Stack Overflow or respective owner

Related posts about html

Related posts about css