Hi, > > What is the real difference between using '@import' for > external style > > sheets or 'link rel='? They both do the same thing no? DO they rank > > differently in the cascade, etc..?? > [snip] > > Note: '@import' is not recognized by older browsers. But thus > you can link > to a stylesheet created for older browsers, and then use > '@import' to include > a CSS reference which contains styles supported only by newer > browsers (and > you can waive on any browser detection etc.). The styles in > the imported sheet > will supercede those in the linked one because they come > after the linked > sheet in the code, while older browsers will just ignore the '@import' > directive. It's worth bearing in mind that this is is illegal in CSS2 (at least in my understanding). "CSS2 user agents must ignore any '@import' rule that occurs inside a block or that doesn't precede all rule sets." http://www.w3.org/TR/CSS2/syndata.html#at-rules Having said that, I use this hack myself. Cheers, Dave. > > > Regards, > Jens. > > > -- > Jens Meiert > > Steubenstr. 28 > D-26123 Oldenburg > > Mobil +49 (0)175 78 4146 5 > Telefon +49 (0)441 99 86 147 > Telefax +49 (0)89 1488 2325 91 > > Mail <jens@meiert.com> > Internet <http://meiert.com> >Received on Monday, 30 June 2003 05:27:18 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT