Professional Documents
Culture Documents
The key to targeting Internet Explorer 8 and below, with a hack, is to append \9 to the
end of your style. For example:
view plaincopy to clipboardprint?
1. body {
2. color: red; /* all browsers, of course */
3. color : green\9; /* IE8 and below */
4. }
Its important to note that it must be \9. Unfortunately you cant replace this with
something along the lines of \IE, like I attempted to do so. Even \8 wont work; it
must be \9.
IE6
Lastly, we have the underscore hack, which most designers are familiar with by now.
Rather than the * symbol, we use the underscore. This will target only Internet Explorer
6.
view plaincopy to clipboardprint?
1. body {
2. color: red; /* all browsers, of course */
3. color : green\9; /* IE8 and below */
4. *color : yellow; /* IE7 and below */
5. _color : orange; /* IE6 */
6. }