Sometimes when I see CSS prefixes like -webkit
, -moz
and even -ms
. So I had some questions about them:
background
, for example)? Example:
.class {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
Or:
.class {
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
}
Thank you!
UPDATE 1:
Even writing in any order, the practical effect is the same. So question 3.
UPDATE 2:
I've been researching and found that the order can be "crucial" when the style involves more than one value (eg, border-radius: 30px 10px;
), which can cause a huge difference in the display of the element ( View here an example ). Therefore, it is more recommended to place the prefixed above the non-prefixed :
.class {
-moz-border-radius
-webkit-border-radius
border-radius
}