Posted By

plesh on 07/08/11


Tagged

css ie conditional internet explorer statements


Versions (?)

IE Conditional Statements


 / Published in: CSS
 

URL: www.davidheely.co.uk

Enables you to easily select older version of CSS by class rather than having a seperate CSS file for each version of IE.

  1. <!--[if lt IE 7 ]> <html lang="en" class="ie ie6"> <![endif]-->
  2. <!--[if IE 7 ]> <html lang="en" class="ie ie7"> <![endif]-->
  3. <!--[if IE 8 ]> <html lang="en" class="ie ie8"> <![endif]-->
  4. <!--[if IE 9 ]> <html lang="en" class="ie ie9"> <![endif]-->
  5. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="nie"> <!--<![endif]-->

Report this snippet  

You need to login to post a comment.