Is it compulsory to use browser prefixes in Css?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it compulsory to use browser prefixes in Css??

Yes, browser- prefixes are needed for old Css but for today browser compatibility do I need to use them all time. And when we are making professional websites, do we need to use them?

4th Jun 2019, 6:51 PM
Sumit Sinha
Sumit Sinha - avatar
2 Answers
+ 4
Yes. But I never add them manually. Use an autoprefixer with webpack or what ever preprocessing library you're using. Here is an example of an article you can review. https://survivejs.com/webpack/styling/autoprefixing/
7th Jun 2019, 12:16 AM
David Carroll
David Carroll - avatar
+ 2
Unfortunately yes, gradient for example are different across browsers and what you're doing with fallbacks and browsers prefixes is making sure the code runs everywhere the same, no matter how old someone's browser is. Even professional sites have source code available and you'll notice plenty prefixes in them
4th Jun 2019, 8:46 PM
HNNX 🐿
HNNX 🐿 - avatar