Skip to content

Instantly share code, notes, and snippets.

@elrrrrrrr
Created July 13, 2015 09:02
Show Gist options
  • Save elrrrrrrr/a0726d1544b46ed45436 to your computer and use it in GitHub Desktop.
Save elrrrrrrr/a0726d1544b46ed45436 to your computer and use it in GitHub Desktop.
css hack for IE
#hack {
color:red; /* All browsers */
color:red !important;/* All browsers but IE6 */
_color:red; /* Only works in IE6 */
*color:red; /* IE6, IE7 */
+color:red;/* Only works in IE7*/
*+color:red; /* Only works in IE7 */
color:red\9; /* IE6, IE7, IE8, IE9 */
color:red\0; /* IE8, IE9 */
color:red\9\0;/*Only works in IE9*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment