Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

word-wrap:break-word not working in IE8

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

like image 465
Sixfoot Studio Avatar asked Oct 22 '10 13:10

Sixfoot Studio


People also ask

How do you break words in Internet Explorer?

If we use ie7, it could break the long word well. So I suggest you could add the meta tag in html to force the ie using ie7. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

Can I use word-wrap break word?

Using word-wrap , overflow-wrap , and word-break CSS properties. You can use the word-wrap , overflow-wrap , or word-break CSS properties to wrap or break words that would otherwise overflow their container.

Is it possible to break the long words and wrap it on the next line using CSS?

The word-break property in CSS is used to specify how a word should be broken or split when reaching the end of a line. The word-wrap property is used to split/break long words and wrap them into the next line.


1 Answers

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

like image 86
Frédéric Hamidi Avatar answered Oct 03 '22 14:10

Frédéric Hamidi