snipt

Ctrl+h for KB shortcuts

CSS

IE6+7 Selectors

* html #selector {property:value;} /* Only IE6 and lower will see this */
*+html #selector {property:value;} /* Only IE7 will see this */
https://snipt.net/embed/946ef512b91b90b3b0a355b6a9aeae8d/
/raw/946ef512b91b90b3b0a355b6a9aeae8d/
946ef512b91b90b3b0a355b6a9aeae8d
css
CSS
2
2019-08-19T17:18:05
True
False
False
/api/public/snipt/4689/
ie67-selectors
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</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">*</span> <span class="nt">html</span> <span class="nn">#selector</span> <span class="p">{</span><span class="n">property</span><span class="o">:</span><span class="n">value</span><span class="p">;}</span> <span class="c">/* Only IE6 and lower will see this */</span> </span><span id="L-2"><a name="L-2"></a><span class="o">*+</span><span class="nt">html</span> <span class="nn">#selector</span> <span class="p">{</span><span class="n">property</span><span class="o">:</span><span class="n">value</span><span class="p">;}</span> <span class="c">/* Only IE7 will see this */</span> </span></pre></div> </td></tr></table>
css, explorer, ie, internet, selectors