When I'm using word-wrap:break-word
with Browser Mode: IE9 Compatibility View and Document Mode: IE7 standards its working perfectly fine. However when I change the Document Mode: IE9 standards, its not working.
I've also tried using -ms-word-wrap:break-word
however its giving me the same result.
Document Type Definition: DTD/xhtml1-transitional.dtd
Can anyone tell me why is it so and if there is any workaround to cope up with it ?
In my case, IE did not respect the word break style until I made the span render as inline-block.
try it this way
applying word-wrap property to parent of the concerned element will resolved the problem in IE9.
it should work,
.your_class_name{word-break:break-word;}
, i have tested it in ie7 - ie9 and it breaks the word...you need to have
and put
word-wrap
intable,td,th
not intospan
http://jsfiddle.net/d6VsD/7/
works in > IE9