Add Class Just for IE

Hack or Fix 57 views
0 Flares 0 Flares ×

This will allow you to add a class to any element based on whether or not you are using Internet Explorer. This by the way only works with IE9 & below since IE10 has done away with this type of selecting.

<!--[if IE ]>
   <body class="ie">
<!--[if !IE]>-->
Provided by: Chris Coyier
Tagged with:
Posted in HTML


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.


Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×