MyBB Community Forums

Full Version: Add specific CSS for IE only ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to add to the stylesheets a css with conditions ?

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

The Conditions are :

<!--[if IE]>
<![endif]-->

Thanks~
You answered your own question. Just add that code to the headerinclude template, below the {$stylesheets} variable.

What else do you need to know?
I thought i could "integrate" into the {$stylesheets} variable.
You can easily add stylesheets through the Admin CP which will be called by the {$stylesheets}, but you can't quite make it target IE only.
It's HTML so needs to go in the templates, not the stylesheets.
Ok. Thanks for your answer.

Maybe you could implement (the targetting thing) in the next version of MyBB.