views:

47

answers:

2

Can anyone please tell me why word-wrap: break-word will not work in IE8?

I have this working in other browsers but IE8 refuses to listen despite reading this post on their site?

http://msdn.microsoft.com/en-us/library/ms531186(VS.85).aspx

Thanks

A: 

Does -ms-word-wrap work for you in IE 8?

Paul D. Waite
+2  A: 

If I recall correctly, word-wrap: break-word; is indeed supported in Internet Explorer 8, but the styled element must have layout.

Frédéric Hamidi
Yes. The page the OP linked says it right there: `This property applies to elements that have layout. An element has layout when it is absolutely positioned, is a block element, or is an inline element with a specified height or width.`
Matt Ball