Skip to content

Instantly share code, notes, and snippets.

@justinfrench
Created February 9, 2012 03:53
Show Gist options
  • Save justinfrench/1777140 to your computer and use it in GitHub Desktop.
Save justinfrench/1777140 to your computer and use it in GitHub Desktop.
Target modern browsers with the :not selector
.something {
rules for older browsers like IE6–8
}
.something:not(.crappy) {
extra rules for any browser that supports :not selector
the .crappy class is a hack, but it feels appropriate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment