Posted By

mikael12 on 10/30/10


Tagged

ie-conditional


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Carolyne
kuyabiye
kwameboame


HTML IE conditional for CSS styling


 / Published in: HTML
 

http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/

  1. <!-- If you already have ie.css -->
  2. <!--[if lt IE 8]><link rel="stylesheet" href="/css/ie.css" media="screen" /><![endif]-->
  3.  
  4. <!-- Paul Irish's nice solution -->
  5. <!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
  6. <!--[if IE 7 ]> <html class="ie7"> <![endif]-->
  7. <!--[if IE 8 ]> <html class="ie8"> <![endif]-->
  8. <!--[if IE 9 ]> <html class="ie9"> <![endif]-->
  9. <!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]-->

Report this snippet  

You need to login to post a comment.