Conditional Body Tag for Drupal 7


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

Haven't fully tested this yet.


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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.