[thelist] Does MSIE 5 Have a Problem with @media?

Lonnie kr43m0r at earthlink.net
Tue Nov 4 17:53:43 CST 2003


> Does anyone know if there is a known bug with @media in style sheets in
MSIE
> 5.X? I was trying to adopt a printing approach in a single style sheet and
> added something like this:

Yes, I just experienced this exact same thing. PC/IE5 is wonky with @media
directives.

Cure:
Separate the print declarations into a separate stylesheet. Serve them with
a standard <link rel="stylesheet" media="print" src="print.css"> tag.

If NN4 is an issue you can use the caio hack[1].
Alternatively, you can use the high pass filter hack[2].


[1] http://centricle.com/ref/css/filters/tests/caio/
[2] http://centricle.com/ref/css/filters/tests/high_pass/

Good luck,
Lonnie




More information about the thelist mailing list