January 27, 2019
What are vendor prefixes in CSS?
Some of the latest CSS features doesn’t support some browsers, so that we use some vendor’s prefixes in CSS, like -webkit-, -ms-, -o-, -moz- , I am explaining which prefix you can use for particular browser so let’s start.
- -webkit- : Safari, Google Chrome, Android, iOS
- -ms- : Internet Explorer
- -o- : Opera
- -moz- : Firefox
I have explained everything in front of all prefixes, that where you can use particular prefix for more info watch this video I hope you will like.
https://www.youtube.com/watch?v=mzW7qlx561A
<!doctype html>
<html>
<head>
<title>Testing</title>
<style type="text/css">
.dk{
width:500px;
height:350px;
border:2px solid #000;
margin:0 auto;
-webkit-border-radius:20px;
-ms-border-radius:20px;
-moz-border-radius:20px;
-o-border-radius:20px;
border-radius:20px;
}
.dk h1{text-align:center;}
</style>
</head>
<body>
<div class="dk">
<h1>Testing</h1>
</div>
</body>
</html>