Are all three stylesheets necessary?

jeanm

Member
I've been reading and learning a lot lately about CSS. One web site I've just been to says to:

Create three stylesheets:

* a generic one that will cover most basic stylesgeneric.css
* one for Internet Explorerie-styles.css
* one for Netscapens-styles.css

Is this really necessary please?
 

smoovo

New Member
Most of the time you won't be need more than one stylesheet file. There is known issues, mostly with the IE browsers, so if you are dealing with one of them and having design problems you will have to cross browser with IE friendly stylesheet.

To point only to IE (even to a specific version) you'll use the code from this article.

- Enjoy. :)
 

PixelPusher

Super Moderator
Staff member
As a whole, if you write clean css you really shouldn't need any browser specific stylesheets. The one off situation I have run into, is early versions of IE.

That being said, many early IE problems can be solved with some adjustments to you "main" CSS stylesheet, however, it can be time consuming. So, in the end, you need to weight out time vs money, and that occasionally leads to browser specific stylesheets :)
 
Top