Created
August 30, 2012 04:13
-
-
Save peterwilsoncc/3522253 to your computer and use it in GitHub Desktop.
IE8 and below safe hack
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
/* | |
* Result should be modern browsers get a blue background | |
* Old browsers (incl IE8 and below) get a red background | |
* ref: http://caniuse.com/#feat=css-mediaqueries | |
*/ | |
html { | |
background: red; | |
} | |
@media only all { | |
html { | |
background: blue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment