Hmm. That's a bit strange, because I know it works, at least in Internet Explorer 6.
Documentation for the wordWrap property is at:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/wordwrap.asp
I have discovered that this property is supported in...
<pre style="word-wrap:break-word">
CSS word wrapping style may not always work such as the above code is placed in a table cell as I've done it before which has no effect.
To overcome this, I put a CSS style with it (for example):
width:500px
so that the full CSS style for a table...
Hmm. I can see your point that <pre> element tags won't word wrap particularly in Internet Explorer.
Fortunately, using CSS will solve this. Here's an easy example to word wrap in <pre> tags (choose 1 of 2 easy ways I will demonstrate, but there are lots of ways to use CSS though! such as the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.