Skip to content

Instantly share code, notes, and snippets.

@zeropointdevelopment
Last active January 3, 2016 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeropointdevelopment/8394754 to your computer and use it in GitHub Desktop.
Save zeropointdevelopment/8394754 to your computer and use it in GitHub Desktop.
[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