Quick Internet Explorer CSS Hacks – IE 6, IE7, IE8

By February 15, 2014Blog, Design Tips
css image

Here are some lovely Internet Explorer CSS Hacks.

As time passes these internet explorer css hacks will naturally become more and more redundant, as the older browsers are no longer supported. And thank the design gods for that.

 

 

IE8 and Below: Append “\9” to the end of your style.

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

IE7 and Below: *

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

IE6 Only : _

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