The Light
The Light

Reputation: 27011

How to achieve word-wrap: break-word behaviour in IE 6.0?

word-wrap doesn't seem to be supported in IE 6.0, judgying by IETester, although I read in a msdn article that is is supported.

How to achieve word-wrap: break-word behaviour in IE 6.0? e.g. using JQuery?

Thanks

Upvotes: 1

Views: 371

Answers (2)

Jason Gennaro
Jason Gennaro

Reputation: 34855

Just checked in my IE6 with this code:

<!DOCTYPE html>
<html>
<head>
    <title></title>

<style type="text/css">
<!--
p{
  width:100px;
  word-wrap: break-word;
}
-->
</style>

</head>

<body>
    <p>Loremipsumdolorsitamet,consecteturadipiscing</p>
</body>
</html>

And it works fine. See the pic below:

enter image description here

Upvotes: 1

user247702
user247702

Reputation: 24212

word-wrap: break-word started as an IE proprietary property/attribute and has been available since IE 5.5 (source). It was added to the CSS3 spec.

Upvotes: 0

Related Questions