Last active
January 3, 2016 02:19
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lte IE 9]> | |
Your IE8 and below HTML code here. | |
Perhaps importing a specific style sheet. | |
<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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