Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress] Code for article: CSS Hacks for IE targeting only IE8, IE7 and IE6 - http://www.limecanvas.com/css-hacks-for-ie-targeting-only-ie8-ie7-and-ie6/
<!--[if lte IE 9]>
Your IE8 and below HTML code here.
Perhaps importing a specific style sheet.
<![endif]-->
div {
border: 2px solid #aaa; /* for all browsers */
border: 2px solid #f009; /* IE8 and below - red border */
*border: 2px solid #0f0; /* IE7 and below - green border */
_border: 2px solid #00f; /* IE6 and below - blue border */
}
div {
border: 2px solid #aaa; /* for all browsers */
border: 2px solid #f009; /* IE8 and below - red border */
*border: 2px solid #0f0; /* IE7 and below - green border */
}
div {
border: 2px solid #aaa; /* for all browsers */
border: 2px solid #f009; /* IE8 and below - red border */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.