Skip to content

Instantly share code, notes, and snippets.

@pitabas106
Created September 5, 2019 03:01
Show Gist options
  • Save pitabas106/7bb3a07a051d8e14c7fdde6251c6c18b to your computer and use it in GitHub Desktop.
Save pitabas106/7bb3a07a051d8e14c7fdde6251c6c18b to your computer and use it in GitHub Desktop.
Browser specific CSS
/* Firefox */
@-moz-document url-prefix() {
body {
color: #f00;
}
}
/* Safari & Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
body {
color: #ccc;
}
}
/* IE 11 (and above) */
_:-ms-fullscreen, :root .ie11up {
body {
color: #000;
}
}
/* IE 8,9 and 10 */
@media screen\0 {
.ie8910 {
property: value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment