IE Conditional Statements

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

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.