snipt

Ctrl+h for KB shortcuts

CSS

Targeting IE

1
2
3
4
5
<!--[if lte IE 9]> Special instructions for all IE browsers 9 and below <![endif]-->

<!--[if IE]> Special instructions for all IE browsers <![endif]-->

<!--[if !IE]> Special instructions for all browsers except any IE browser <![endif]-->
https://snipt.net/embed/50b3f47bf948fa569834701704a8567c/
/raw/50b3f47bf948fa569834701704a8567c/
50b3f47bf948fa569834701704a8567c
css
CSS
6
2019-05-15T19:07:11
True
False
False
/api/public/snipt/15560/
targeting-ie
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="o">&lt;!</span><span class="nt">--</span><span class="o">[</span><span class="nt">if</span> <span class="nt">lte</span> <span class="nt">IE</span> <span class="nt">9</span><span class="o">]&gt;</span> <span class="nt">Special</span> <span class="nt">instructions</span> <span class="nt">for</span> <span class="nt">all</span> <span class="nt">IE</span> <span class="nt">browsers</span> <span class="nt">9</span> <span class="nt">and</span> <span class="nt">below</span> <span class="o">&lt;![</span><span class="nt">endif</span><span class="o">]</span><span class="nt">--</span><span class="o">&gt;</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="o">&lt;!</span><span class="nt">--</span><span class="o">[</span><span class="nt">if</span> <span class="nt">IE</span><span class="o">]&gt;</span> <span class="nt">Special</span> <span class="nt">instructions</span> <span class="nt">for</span> <span class="nt">all</span> <span class="nt">IE</span> <span class="nt">browsers</span> <span class="o">&lt;![</span><span class="nt">endif</span><span class="o">]</span><span class="nt">--</span><span class="o">&gt;</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="o">&lt;!</span><span class="nt">--</span><span class="o">[</span><span class="nt">if</span> <span class="o">!</span><span class="nt">IE</span><span class="o">]&gt;</span> <span class="nt">Special</span> <span class="nt">instructions</span> <span class="nt">for</span> <span class="nt">all</span> <span class="nt">browsers</span> <span class="nt">except</span> <span class="nt">any</span> <span class="nt">IE</span> <span class="nt">browser</span> <span class="o">&lt;![</span><span class="nt">endif</span><span class="o">]</span><span class="nt">--</span><span class="o">&gt;</span> </span></pre></div> </td></tr></table>
"ie conditional statement", "targeting ie", html