- From: David Balch <david.balch@continuing-education.oxford.ac.uk>
- Date: Mon, 30 Jun 2003 10:26:42 +0100
- To: "'Jens Meiert'" <jens.meiert@erde3.com>
- Cc: www-style@w3.org
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 UTC