Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created August 30, 2012 04:13
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 peterwilsoncc/3522253 to your computer and use it in GitHub Desktop.
Save peterwilsoncc/3522253 to your computer and use it in GitHub Desktop.
IE8 and below safe hack
/*
* 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