Jump to content

Why do people use @import 'another_css_file.css' ? Pro's and cons?


Guest kilbad

Recommended Posts

http://www.hwg.org/resources/faqs/cssFAQ.html#import

And older version of Netscrap couldn't understand @import and thus ignored it, allowing what amounts to a Netscrap-compatible style sheet plus imported styles for other browsers.
I normally have something like this (well this exact, its copied from one my websites)

<link href="spaininland.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="spaininlandie.css" rel="stylesheet" type="text/css" />
<![endif]-->

This sorts out some crap just for IE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.