+ 2
is it nessary to write the prefix for the browsers when using the linear-gradient property in CSS?
prefixes: -moz- -o- -webkit- Also, if I write -moz-linear-gradient will it work for all browsers? if not, how do I write code for it to work on all browsers?
1 Antwort
0
IMHO, vendor prefixes are useful if you intend to make your website backwards-compatible for old browsers. If so, you should define a CSS class with *all* prefixes, plus the general one:
-moz-linear-gradient...
-o-linear-gradient...
-webkit-linear-gradient...
linear-gradient...