[thelist] Does MSIE 5 Have a Problem with @media?
Randy Pearson
randyp at cycla.com
Tue Nov 4 16:32:23 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:
@media screen{
.MainMenu{ width: 160px; text-align: left; }
}
@media print{
.MainMenu{ display: none; }
}
This worked fine, except in MSIE 5.X, where the behavior was quite erratic.
It would seem almost to randomly use/ignore the styles, such that repeatedly
refreshing the same page would vary the rendering. I pared isolated the
trouble to this use of dual-media usage within one page.
Further, this appeared only to apply when the CSS was external. I copied the
whole .CSS file contents into a <style> block in the document, and the
problem did not occur.
If this is a bug, does anyone know a workaround, other than adding a
separate .CSS file?
Thanks,
-- Randy
More information about the thelist
mailing list