PDA

View Full Version : @import


angiras
04-28-2003, 06:37 PM
what is the difference (or better way) between @import and link href , for a stylesheet , 'm working only with xhtml

thanks

Grant Palin
04-29-2003, 01:26 AM
No difference really, except that @import can be used to import stylesheets specific to whichever browser you're using. For example, Navigator 4 does not recognize @import, and just skips over it. You can use this to your advantage to include seperate stylesheets with styles not supported by Navigator 4. The general stylesheet can contain the stuff you know will work. @import can be used either inside a <STYLE> block, or inside a seperate stylesheet. It's usually best to put the @import at the top of the <STYLE> block or stylesheet, to be sure it works.

angiras
04-29-2003, 05:52 AM
thank you !