Forum Moderators: not2easy
As far as I know, no other browser will load the style sheet. Of course, it doesn't validate...
one that does validate but you need reverse psychology is the commented backslash hack
This hack hides from IE/Mac so you can declare the rules you want Mac to see first in the cascade then hide the "real rules" in a commented backslash hack so everyone else will get it.
div {IE/Mac rule}
/* start hide \*/
div {what you want everyone else to see}
/* end hide */
or is there a specific conditional comment that targets IE/Mac 5.2 or 5.1 etc...only?
Any mac users out there care to be specific?
Suzy
<style type="text/css">@import("css/ie5mac.css");</style> However, I noticed some file not found entries in my error log from a IE6 user. I should probably add a / before css.
That backslash trick is handy too, especially if you use multiple stylesheets and a switcher.
what you want, especially as M$ are so good at covering themselves, and I believe (or try to!) they always do give us a "get out" clause, is to know which conditional comment [msdn.microsoft.com] if any could specifically target Mac versions?
e.g. 5.1 or 5.2 that way you wouldn't have to "hide" CSS with hacks you would just specifically target them as per IE's usual rules. and the CSS would still validate
Suzy
<style type="text/css">
@import["stylesheet.css"]
</style>
And, truly, all browsers I've tested this in, completely ignore the @import rule. So far, I've tested in
IE 5/WinBut, what about other browsers? Mainly, what about IE/Mac? How does IE/Mac handle this?
IE 5.5/Win
IE 6/Win
Opera 7/Win
Mozilla 1.5/Win
FireBird 0.7/Win
<style type="text/css">@import("stylesheet.css");</style>
But let's be grateful that we still have the commented backslash hack :)