Re: [WSG] variations on @import syntax?
There are a wide range of variations. Each variation will allow you to target different browsers. Here are some: @import url(styles.css) not all; @import url(styles.css) all; @import url(styles.css) All; @import null?\\{; @import styles.css; @import null?\\}; @import'styles.css'; @importstyles.css; @import 'styles.css'; @import styles.css; @import url(styles.css); @import url('styles.css'); @import url(styles.css); This can be seen in this browser filters chart: http://www.dithered.com/css_filters/css_only/index.php Russ I just noticed that on Zeldman's website his CSS is imported like this: style type=text/css media=all@import /c/c04.css;/style which I don't think I've ever seen before. I normally see @import url(/c/c04.css) is there some hack being invoked here, or is it just a matter of style? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] variations on @import syntax?
browser filters chart: http://www.dithered.com/css_filters/css_only/index.php Very useful, thanks a lot Russ. I'm a bit disturbed to see that this particular syntax will Destroy (i.e. hang) some Windows Netscape 4 versions: http://www.dithered.com/css_filters/css_only/import_single_quotes_no_url.html but I'm guessing that the fact it's inside style type=text/css media=all/style gets around that? Hacks within hacks within hacks... Have You Validated Your Code? John Horner(+612 / 02) 9333 3488 Senior Developer, ABC Online http://www.abc.net.au/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **