Posted By

chrisaiv on 10/18/08


Tagged

html ie6 ie5 ie7


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

vali29
nreliu
jmiller
createinside
michellebracken
Priestd09


HTML: Conditional HTML for IE6 and IE7


 / Published in: HTML
 

If your trying to find a clean way of applying a CSS style to IE6 and IE7 individually, here's how to do it

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  3.  
  4. <!-- IE 5, 5.5, 6 CSS -->
  5. <!--[if lte IE 6]>
  6. <link rel="stylesheet" href="css/ie6.css" type="text/css" media="screen" charset="utf-8" />
  7. <![endif]-->
  8.  
  9. <!-- IE 7 CSS -->
  10. <!--[if gte IE 7]>
  11. <link rel="stylesheet" href="css/ie7.css" type="text/css" media="screen" charset="utf-8" />
  12. <![endif]-->
  13.  
  14. </head>
  15. </body>
  16. </html>

Report this snippet  

You need to login to post a comment.