Posted By

jessibird on 08/20/09


Tagged

ie


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jessibird
vali29


Add body class just for IE


 / Published in: HTML
 

URL: http://css-tricks.com/snippets/html/add-body-class-just-for-ie/

Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.ie

  1. <!--[if IE ]>
  2. <body class="ie">
  3. <![endif]-->
  4. <!--[if !IE]>-->
  5. <body>
  6. <!--<![endif]-->

Report this snippet  

You need to login to post a comment.