Text wrapping only works inline

liunx

Guest
I have tried using the following CSS commands/parameters with the DIV tag to wrap text but it only works/wraps when I use the inline version. The external code (in an external CSS file that I link into the main html) doesn't work.


Here is what I use (perhaps the external code is wrong?):

In-Line:
<div STYLE="word-wrap: break-word">This is the text content of this div element</div>


Ext/Doc:
div { word-wrap: break-word }


Any ideas why?Does appending the ; make a difference?No, that wasn't the problem. I had been reading in an earlier version of the CSS file (had copied over the new one by mistake <SIGH!>) which didn't have the new code.

Actually the "word-wrap: break-word;" code works perfectly, as it should. HATE when that happens.

thx!
 
Back
Top