Posted By

marshallgmoore on 04/19/11


Tagged

conditional drupal comments


Versions (?)

Conditional Body Tag for Drupal 7


 / Published in: HTML
 

Haven't fully tested this yet.

  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  

You need to login to post a comment.