conditional comments - add IE specific classes to the body tag


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



Copy this code and paste it in your HTML
  1. <!--[if lt IE 7 ]> <body class="ie6 <?php print $body_classes; ?> show- grid"> <![endif]-->
  2. <!--[if IE 7 ]> <body class="ie7 <?php print $body_classes; ?> show- grid"> <![endif]-->
  3. <!--[if IE 8 ]> <body class="ie8 <?php print $body_classes; ?> show- grid"> <![endif]-->
  4. <!--[if IE 9 ]> <body class="ie9 <?php print $body_classes; ?> show- grid"> <![endif]-->
  5. <!--[if (gt IE 9)|!(IE)]><!--> <body class="<?php print $body_classes; ?> show- grid"> <!--<![endif]-->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.