Return to Snippet

Revision: 28668
at July 12, 2010 13:21 by scitrenbaumgmailcom


Initial Code
IE8 and Below

The key to targeting Internet Explorer 8 and below, with a hack, is to append "\9� to the end of your style. For example: 

body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
}

E7 and Below

we can use the * symbol to target IE7 and below, like so: 

body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
 *color : yellow; /* IE7 and below */
}

IE6

body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
 *color : yellow; /* IE7 and below */
 _color : orange; /* IE6 */
}

Initial URL


Initial Description


Initial Title
Target IE6, IE7, IE8

Initial Tags
css

Initial Language
CSS