@import for stylesheets vs <link>

Author Message

Gabriel Ambuehl

Saturday 12 March 2005 2:05:14 am

Is there a reason why stylesheets get imported via @import rather than <link rel="... ? It seems like all the browsers and wget aren't able to save @imported CSS when saving a page with the result of a completely unstyled page after saving. It seems to work in case of <link rel> stylesheets in my Firefox tests (minus the fact that Firefox is too dumb to figure out it should probably also save the img references in the stylesheets...)...

Visit http://triligon.org

Xavier Dutoit

Sunday 13 March 2005 4:48:41 am

I use @import instead of link as the most buggy browsers (Netscape 4 for instance) don't understand the import statement and therefore won't use the css (and screw the layout).

This being said, as NE4 market share is probably very close to 0, I doubt this trick is very useful anymore. Legacy habit I suppose.

P.S. Seen your modifications on ezenhancedobjectrelations: congrat !

http://www.sydesy.com

Gabriel Ambuehl

Sunday 13 March 2005 4:52:08 am

Ah so that's why it looks entirely unstyled in NS4. Personally, I stopped giving a shit for NS4 users (same for IE4, both are well below 1% market share). Half the web doesn't look anywhere right to them anyway, so why should I spend double the time for the few lost souls?

Thanks ;-)

Visit http://triligon.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.