Apply Border Property on different HTML tags on your web pages
{border-style : solid;}
property value
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{
background-color:white;
padding:10px 35px;
border-style:dotted;
border-radius:5px}
</style>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">
button border properties
</button>
</body>
</html>
Here are some other border propertieds.
{border-width : 10px}
property value
{border-color : green}
property value
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{
background-color:white;
border-color:red;
border-width:10px;
padding:10px 35px;
border-radius:5px}
</style>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">
button border properties
</button>
</body>
</html>
Border radius property is used to set the curve shape (rounded corners) while applying on HTML elements.
{border-radius: 10px;}
property value
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{
border-radius:20% 80% 20% 80%;
padding:50px;
width:100px;
color:white;
text-align:center;
background:linear-gradient(130deg,black,red);
}
</style>
</head>
<!--Body-->
<body>
<div class="tdb-school">
border-radius
</div>
</body>
</html>
We can also use border Shorthand Property.
{border: color style width}
property value
<style>
/*order shorthans*/
.parent{
border: color style width;
}
</style>
<!DOCTYPE html>
<html>
<!--Body-->
<body>
<button type="submit" class="tdb-school"
style="border:black double 5px;padding:10px 35px;">
button border properties
</button>
</body>
</html>
{border-image : url(js.png) 25 round}
property value
<style>
/*order shorthans*/
.parent{
border-image: url(js.png) 20 round;
}
</style>
<style>
/*order shorthans*/
.tdb-image{
border-image: url(js.png) 20 round;
padding:25px;
}
</style>
<body>
<button class="tdb-image" type="submit"
class="tdb-school">
border-image properties
</button>
</body>
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers