Sent by Timothy J. Luoma on 29 September 2002 03:03
Tim Rivera wrote:
> 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
Not at all. Sounds like the print preview in IE5.5 is broken (IE/win
5.0 doesn't seem to have one at all)
I'm using '@media print' in a LINK'd stylesheet for www.TnTLuoma.com and
www.1stpc.org and they both work in the print preview for IE6/Op6/Moz
TjL
--
30 Days to becoming an Opera Lover
http://www.tntluoma.com/switch
Day 25: Opera does Plug-ins (better than the other guys) too
http://tntluoma.com/opera/lover/day25-plugins/