logo       

Is @media for inline style sheets only?: msg#01226

Subject: Is @media for inline style sheets only?
I am experimenting with targeting media types for CSS to hide unnecessary
content when printing. When I use the "@media print {}" rule in the external
style sheet, none of the rules are being implemented during print preview.
In fact, IE5.5 is actually implementing the rules for the regular screen
version. However, if I have the style sheet inline instead of external,
everything works properly in supporting browsers.

Is the @media rule meant to be used only in inline style sheets? I found no
mention of this in the CSS2 specs.
http://www.w3.org/TR/REC-CSS2/media.html#at-media-rule


Tim

_______________________________________________
css-discuss [css-discuss@xxxxxxxxxxx]
http://three.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning



<Prev in Thread] Current Thread [Next in Thread>