htmlcssinternet-explorer-8font-familymonospace

Monospace font in IE8 ignores spaces


I'm trying to get a monospaced asci table working, as seen here: <pre> tag and css font-family

This works for me on all browsers, except IE8.

On IE8, the spaces all get compressed into one space. (so the columns disappear)

Any ideas on why IE8 is doing this?

Thanks in advance,

Alex


Solution

  • Add white-space:pre to your element to preserve white-space characters.