I figured it out. For internet exploder, you have to turn on
"standards-compliant mode"
for white-space:pre to work. white-space:pre-wrap only works in IE8.
Here's the msdn article where this precious gem is buried:
http://msdn.microsoft.com/en-us/library/ms531182%28VS.85%29.aspx


On Oct 8, 3:35 pm, Zach Schneider <[email protected]> wrote:
> try adding an specific style for only IE or check to see if you have a
> specific style:
>
> <!--[if IE]>
> Add CSS tweaks here
> <![endif]-->
>
> Zach Schneider
>
> http://www.twitter.com/zkmhttp://www.zachschneider.comhttp://www.linkedin.com/in/zschneider
>
> Mike Ditka <http://www.brainyquote.com/quotes/authors/m/mike_ditka.html>  -
> "If God had wanted man to play soccer, he wouldn't have given us arms."
>
> On Wed, Oct 7, 2009 at 3:19 PM, mindgrep <[email protected]> wrote:
>
> > The following works in firefox 3 but not in IE (6/7/8 take your pick):
>
> > <span style="white-space: pre-wrap">
> > line 1
> > line 2
> > </span>
>
> > Same goes for white-space:pre as well.
>
> > Any idea how to make IE preserve the formatting using CSS (without
> > using the <pre> tag)?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to