Skip to content

Instantly share code, notes, and snippets.

@michaelschofield
Created June 5, 2012 17:22
Show Gist options
  • Save michaelschofield/2876355 to your computer and use it in GitHub Desktop.
Save michaelschofield/2876355 to your computer and use it in GitHub Desktop.
IE CSS Hacks (IE6, IE7, and IE8)
/* ========================================
* I find these special character hacks for
* Internet Explorer super useful. Enjoy.
* ======================================== */
body {
color: red;
/* ===============================
* Change the text color to green
* for IE8, IE7, and IE6 with '\9'
* =============================== */
color: green\9;
/* ===============================
* Change the text color to yellow
* for IE7 and IE6 with an asterisk
* =============================== */
*color: yellow;
/* ===============================
* Change the text color to orange
* for just IE6 with and underscore
* =============================== */
_color: orange;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment