Use IE conditional comments to apply classes to body tag

/ Published in: CSS
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.