<font color="#333333"><font><font face="arial,helvetica,sans-serif">That&#39;s why we have Modernizr for. Loading IE stuff separately is ancient history.</font></font></font><div><font color="#333333" face="arial, helvetica, sans-serif"><br>

</font></div><div><font color="#333333" face="arial, helvetica, sans-serif">Example:</font></div><div><font color="#333333" face="arial, helvetica, sans-serif"><br></font></div><div><pre style="word-wrap:break-word;white-space:pre-wrap">

&lt;!doctype html&gt;
&lt;!--[if lt IE 7 ]&gt; &lt;html class=&quot;no-js ie6&quot; &lt;?php language_attributes(); ?&gt;&gt; &lt;![endif]--&gt;
&lt;!--[if IE 7 ]&gt;    &lt;html class=&quot;no-js ie7&quot; &lt;?php language_attributes(); ?&gt;&gt; &lt;![endif]--&gt;
&lt;!--[if IE 8 ]&gt;    &lt;html class=&quot;no-js ie8&quot; &lt;?php language_attributes(); ?&gt;&gt; &lt;![endif]--&gt;
&lt;!--[if (gte IE 9)|!(IE)]&gt;&lt;!--&gt; &lt;html class=&quot;no-js&quot; &lt;?php language_attributes(); ?&gt;&gt; &lt;!--&lt;![endif]--&gt;
&lt;head&gt;</pre></div><div><font color="#333333" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#333333" face="arial, helvetica, sans-serif">and if I need to change something for IE7 same stylesheet will be used</font></div>

<div><font color="#333333" face="arial, helvetica, sans-serif"><br></font></div><div><pre style="word-wrap:break-word;white-space:pre-wrap">.ie7 #my-header {}</pre><div><font color="#333333"><font><font face="arial,helvetica,sans-serif"><br>

</font></font></font></div><div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Thanks,</font></font></font></div><div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Emil<br></font></font></font><br>

<div class="gmail_quote">On Wed, May 16, 2012 at 11:54 AM, Sayontan Sinha <span dir="ltr">&lt;<a href="mailto:sayontan@gmail.com" target="_blank">sayontan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

There is an issue with the approach suggested by Konstantin. It doesn&#39;t handle negative conditionals. See <a href="http://core.trac.wordpress.org/ticket/16118" target="_blank">http://core.trac.wordpress.org/ticket/16118</a>. If  you need to support negative conditionals you will either require the patches in the Trac ticket or use the approach that I have suggested.<div class="HOEnZb">

<div class="h5"><br>
<br><div class="gmail_quote">On Wed, May 16, 2012 at 9:50 AM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


What Konstantin said. I recommend this method as best practice.<br>
<br>
Chip<br>
<div><div><br>
On 5/16/12, Konstantin Obenland &lt;<a href="mailto:konstantin@obenland.it" target="_blank">konstantin@obenland.it</a>&gt; wrote:<br>
&gt; How about:<br>
&gt;<br>
&gt; function prefix_enqueue_scripts() {<br>
&gt;       wp_enqueue_style( &#39;handle&#39;, get_template_directory_uri() . &#39;/ie.css&#39;,<br>
&gt; array(&#39;style&#39;) );<br>
&gt;<br>
&gt;       global $wp_styles;<br>
&gt;       $wp_styles-&gt;add_data( &#39;handle&#39;, &#39;conditional&#39;, &#39;lt IE 9&#39; );<br>
&gt; }<br>
&gt; add_action( &#39;wp_enqueue_scripts&#39;, &#39;prefix_enqueue_scripts&#39; );<br>
&gt;<br>
&gt; Konstantin<br>
&gt;<br>
&gt;<br>
&gt; On 16.05.2012, at 17:18, Sayontan Sinha wrote:<br>
&gt;<br>
&gt;&gt; Actually you can use wp_enqueue_style for this, by combining with the<br>
&gt;&gt; style_loader_tag filter. E.g.:<br>
&gt;&gt;<br>
&gt;&gt; add_filter(&#39;style_loader_tag&#39;, &#39;suffusion_filter_rounded_corners_css&#39;, 10,<br>
&gt;&gt; 2);<br>
&gt;&gt; function suffusion_filter_rounded_corners_css($css_html_tag, $handle) {<br>
&gt;&gt;     if ($handle == &#39;suffusion-rounded&#39;) {<br>
&gt;&gt;         return &quot;&lt;!--[if !IE]&gt;--&gt;&quot;.$css_html_tag.&quot;&lt;!--&lt;![endif]--&gt;\n&lt;!--[if<br>
&gt;&gt; gt IE 8]&gt;&quot;.$css_html_tag.&quot;&lt;![endif]--&gt;\n&quot;;<br>
&gt;&gt;     }<br>
&gt;&gt;     return $css_html_tag;<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, May 16, 2012 at 8:14 AM, .: chris :. &lt;<a href="mailto:chris@jazzsequence.com" target="_blank">chris@jazzsequence.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; Why not use conditional classes instead of conditional stylesheets?<br>
&gt;&gt; <a href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/" target="_blank">http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/</a><br>
&gt;&gt;<br>
&gt;&gt; :: code bandit ::<br>
&gt;&gt; <a href="http://protocol.by/jazzsequence" target="_blank">http://protocol.by/jazzsequence</a><br>
&gt;&gt; <a href="http://about.me/jazzs3quence" target="_blank">http://about.me/jazzs3quence</a><br>
&gt;&gt;<br>
&gt;&gt; On May 16, 2012, at 9:11 AM, Shinra Web Holdings wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Are themes still permitted to load browser-conditional style sheets using<br>
&gt;&gt;&gt; &lt;!--[if IE 7]&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;ie7.css&quot; type=&quot;text/css&quot;<br>
&gt;&gt;&gt; media=&quot;screen&quot; /&gt;&lt;![endif]--&gt; or are they required to discover the<br>
&gt;&gt;&gt; browser using PHP and use wp_enqueue_style() ?<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; theme-reviewers mailing list<br>
&gt;&gt;&gt; <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
&gt;&gt;&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; theme-reviewers mailing list<br>
&gt;&gt; <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
&gt;&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Sayontan Sinha<br>
&gt;&gt; <a href="http://mynethome.net" target="_blank">http://mynethome.net</a> | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>
&gt;&gt; --<br>
&gt;&gt; Beating Australia in Cricket is like killing a celebrity. The death gets<br>
&gt;&gt; more coverage than the crime.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; theme-reviewers mailing list<br>
&gt;&gt; <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
&gt;&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div><span><font color="#888888">--<br>
Sent from my mobile device<br>
</font></span><div><div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sayontan Sinha<br><a href="http://mynethome.net" target="_blank">http://mynethome.net</a> | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>


--<br>Beating Australia in Cricket is like killing a celebrity. The death gets more coverage than the crime.<br><br>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div></div>