Posted By

senorJ on 03/17/11


Tagged

ie conditional-comments


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jaypplr


conditional comments - add IE specific classes to the body tag


 / Published in: 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  

You need to login to post a comment.