Created
June 4, 2009 23:44
-
-
Save igstan/123930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
For more details see: | |
http://stackoverflow.com/questions/952861/targeting-only-firefox-with-css | |
--> | |
<html> | |
<head> | |
<style type="text/css"> | |
@-moz-document url-prefix() { | |
h1 { | |
color: red; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<h1>This heading should be rendered red just in Firefox</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment