Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><a href="http://www.quirksmode.org/css/condcom.html" rel="nofollow noreferrer">Conditional IE Rules</a>.</p> <pre><code>&lt;!--[if IE 6]&gt; &lt;style type="text/css"&gt; /*For example, this creates special instructions for IE 6*/ .myDiv { padding-right: 10px; } &lt;/style&gt; &lt;![endif]--&gt; </code></pre> <p>Make sure to respect the flow of your rules. You'll want this value to override any previous padding-right value, so place this <em>after</em> your other rules. Or you can add !important after the rule, giving you:</p> <pre><code>&lt;!--[if IE 6]&gt; &lt;style type="text/css"&gt; .myDiv { padding-right: 10px!important; &lt;/style&gt; &lt;![endif]--&gt; </code></pre> <h3>Stackoverflow Archive:</h3> <ul> <li><a href="https://stackoverflow.com/questions/570827/do-you-put-ie-conditionals-in-the-css-file-or-in-the-html-file">Do you put IE conditionals in the css file or in the html file?</a></li> <li><a href="https://stackoverflow.com/questions/1115767/condition-css-differentiate-between-ie6-to-ie7">CONDITION CSS differentiate between IE6 to IE7</a> </li> <li><a href="https://stackoverflow.com/questions/639999/is-there-a-way-to-do-browser-specific-conditional-css-inside-a-css-file">Is there a way to do browser specific conditional CSS inside a *.css file?</a></li> <li><a href="https://stackoverflow.com/questions/987260/how-can-i-have-a-css-style-different-for-ie6">How can I have a CSS style different for IE6?</a></li> <li><a href="https://stackoverflow.com/questions/992871/css-conditional-formatting/992874">css conditional formatting</a></li> <li><a href="https://stackoverflow.com/questions/531048/ie-css-alignment-issues/544092">IE CSS alignment issues</a></li> <li><a href="https://stackoverflow.com/questions/526941/why-should-i-use-conditional-stylesheets">Why should I use conditional stylesheets?</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload