Bart Callaerts

You're damned if you do and you're damned if you don't

Browser specific CSS

For those of you who are wondering if it is possible to create a css seperatly for Firefox and IE : Yes you can. It is possible to create let's say a css for IE and then overwrite the classes when the user is browsing through FF.

Microsoft has provided a thing called Conditional Comments and it works like this :

<link rel="stylesheet" type="text/css" href="../css/CSS_FOR_ALL_BROWSERS.css" />

<![if ! IE]>

<link rel="stylesheet" type="text/css" href="../css/CSS_THAT_OVERWRITES_THE_THINGS_THAT_RENDER_DIFFERENT_IN_OTHER_BROWSERS.css" />

<![endif]>

Here is a link to Microsoft's MSDN page : http://msdn2.microsoft.com/en-us/library/ms537512.aspx

Maybe this can come in handy some day.

greetz, Barre

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: