I have text like
<div style="float:left; width: 250px"> PellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesque feugiat tempor elit.
Ut mollis lacinia quam. Sed pharetra, augue aliquam ornare vestibulum, metus massalaoreet tellus, eget iaculis lacus ipsum et diam. </div>
I do not want horizontal scrolling. Is it possible to wrap the text (auto-line break). I know there are some IE specific properties.
Thank you for your time.
UPDATE: I can use jQuery, Javascript, PHP to do this also. but how? I mean the letters (font) are not fixed width or whatever you call that.
I use the combination
to deal with this. The
word-wrap
setting will allow the word to be wrapped despite its length in browsers which support that property, while theoverflow
setting will cause it to be cut off at the end of the available space in browsers which don't recognizeword-wrap
. That's about as graceful of degradation as you're likely to get without going to javascript.