al**@pentangle.co.uk (Alun) wrote:
@import url("style/screen2.css") screen;
@import url("style/print.css") print;
IE6.0 Does'nt render the styles at all but Opera and Netscape do.
UAs are notoriously buggy in their support for CSS media rules,
unsurprisingly IE is again amongst the worst.
What works for me is a combination of linking, importing and media
wrappers inside the css files. I aim to support IE5.5+, Moz and Opera.
Example:
HTML:
http://www.pan-europe.utvinternet.ie (also links in a handheld SS)
First SS:
http://www.pan-europe.utvinternet.ie/css/one.css
Second SS:
http://www.pan-europe.utvinternet.ie/css/two638.css
Note that this method is not spec compliant, a stylesheet that is linked
in without a specified media type is supposed to apply to screen only,
but Opera, Moz and IE all use the print section.
Test extensively in all UAs that *you* want to be compatible with
because of the many bugs.
--
Spartanicus