Vendor Prefixes (CSS)
Vendor prefixes are used to ensure that older or unsupported browsers have every possibility of implementing the desired rule. Vendor prefixes are before the declarations and denote which tech/browser/setup it is intended for.
div {
-webkit-box-shadow: 0px 0px 4px #fff;
-moz-box-shadow: 0px 0px 4px #fff;
-ms-box-shadow: 0px 0px 4px #fff;
box-shadow: 0px 0px 4px #fff;
}
Using Sass
Sass mixins allow browser prefixes to be done easily.
Using Autoprefixer
You can run Autoprefixer on your CSS to add the prefixes needed on your completed CSS.
Do I have to?
Find out if you do here:
References
Incoming Links
Last modified: 202401040446