Znupi
05-04-2009, 09:27 AM
I have a <code> element with display: block, and I need it to both preserve white space (pre) and not wrap (nowrap). Now, if I specify white-space: pre, Firefox 3 does both, which is excellent. Internet Explorer (7, but I bet 8, too, judging from this page (http://msdn.microsoft.com/en-us/library/ms531182(VS.85).aspx)), on the other hand, only preserves white space. According to standards (http://www.w3.org/TR/CSS2/text.html#white-space-prop), Firefox is right. Is there any way I can make this work on Internet Explorer, too? Thanks :)