Posted By

scitrenbaumgmailcom on 02/15/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sethetter


How to Target IE6, IE7, and IE8


 / Published in: CSS
 

URL: http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-how-to-target-ie6-ie7-and-ie8-uniquely-with-4-characters/

  1. IE8 and Below
  2.  
  3. body {
  4. color: red; /* all browsers, of course */
  5. color : green\9; /* IE8 and below */
  6. }
  7.  
  8. IE7 and Below
  9.  
  10. body {
  11. color: red; /* all browsers, of course */
  12. color : green\9; /* IE8 and below */
  13. *color : yellow; /* IE7 and below */
  14. }
  15.  
  16. IE6
  17.  
  18. body {
  19. color: red; /* all browsers, of course */
  20. color : green\9; /* IE8 and below */
  21. *color : yellow; /* IE7 and below */
  22. _color : orange; /* IE6 */
  23. }

Report this snippet  

You need to login to post a comment.