Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Created March 22, 2011 01:51
Show Gist options
  • Save nathansmith/880619 to your computer and use it in GitHub Desktop.
Save nathansmith/880619 to your computer and use it in GitHub Desktop.
Target Firefox and WebKit via hacky CSS.
/*
Read more here:
https://developer.mozilla.org/en/CSS/@-moz-document
For more browser-specific hacks:
http://paulirish.com/2009/browser-specific-css-hacks
*/
@-moz-document url-prefix() {
/* Put your Firefox specific code here. */
span {
color: black;
font-weight: bold;
}
}
@media (-webkit-min-device-pixel-ratio: 0) {
/* Put your WebKit specific code here. */
span {
color: black;
font-weight: bold;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment