How to Target IE6, IE7, and IE8


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



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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.