Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created January 15, 2014 21:53
Show Gist options
  • Save jbutko/8445495 to your computer and use it in GitHub Desktop.
Save jbutko/8445495 to your computer and use it in GitHub Desktop.
IE, CSS: CSS Hacks IE6-IE9
#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*/
}
/* From http://codemug.com/html/css-hacks-for-ie6ie7ie8ie9-and-ie10/ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment