Posted By

johnloy on 02/24/10


Tagged

css hack ie html


Versions (?)

Use IE conditional comments to apply classes to body tag


 / Published in: CSS
 

  1. <!--[if lt IE 7 ]> <body class="ie6 "> <![endif]-->
  2. <!--[if IE 7 ]> <body class="ie7 "> <![endif]-->
  3. <!--[if IE 8 ]> <body class="ie8 "> <![endif]-->
  4. <!--[if !IE]><!--> <body> <!--<![endif]-->

Report this snippet  

You need to login to post a comment.