>> With the at media rule though, I cant say i agree 100% with you on
>> that because i do not know what browsers you are testing it in.
>> I have tested the at media rule in IE6, NS7.1, Opera7.54, and FF1.0
>> and have all found that they are using the @ rule without any
Zoe M. Gillenwater wrote:
> Yes, but is it supported by the primitive browsers on handhelds?
> Probably on some, probably not on others. <link> is always safer.
Zoe is correct, and it's not just primitive browsers that may get lost here:
To quote from http://www.alistapart.com/articles/pocket/
"You must declare the existence of a handheld style sheet in the HTML
....which mean that an @media rule in a stylesheet will not be applied
(by Opera at least) unless that browser is "told" so.
<link rel="style sheet" href="..." type="text/css"
....is the way to do that.
As an important sidenote:
Using combinations like media="screen,handheld" on a link, may fail in
IE5/win. IE5/win may simply loose track of the stylesheet for screen if
we do it this way. Not sure about the details behind this "loss".
I've found that it doesn't matter to Opera which stylesheet-link we
write media="handheld" on, as long as the correct @media rules are used
as style-wrappers in all stylesheets.
I've not tested this outside the big Opera-browsers, so there's a lot I
don't know yet.
OTOH: IE/Mac is lost if we use @media rules in stylesheets. That's fine
with me, as I use @media rules as filters to prevent old IE/Mac from
seeing styles. Just thought some might like to know.
Don't know of any other, relatively new, browser that can't use most
@media rules, but media "handheld" is not yet well supported. I'm using
it anyway-- because the standard is here...
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/