+ 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?

7th Apr 2017, 3:29 AM
chris - avatar
1 Answer
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...
7th Apr 2017, 5:18 AM