5
I found a command to change CSS in Firefox:
@-moz-document url-prefix() {
body {
background: #f00;
}
}
This command will put a red background only in firefox, for example.
I found it very useful, but I wonder if there is a way to do this with other browsers, but in this style, without the use of "<!--[if IE 8]>"
for example.
Buddy, what you posted are prefixes to use the new CSS3 properties in different browsers. Fountain.
– Laerte
That’s not what he wants (different properties for different browsers)?
– user7261
But your example only works for the new CSS3 properties, try using for example:
-moz-background-color: red;
, did not change the background color only in firefox right? (Actually did not change the color in any). Your comment is valid only for new properties.– Laerte
OK. Thanks for the correction. I will edit the answer to make it clear. =)
– user7261