Many Type of HTML Border
We have many types of border in HTML. We can change it with border style and colors. So we discussed how to change a Border color and Style in HTML.
1. Firstly we write a Code in Sublime Text and Save it to Borderwithcss file
2. Secondly we link a stylesheet in
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>change border style</title>
<link rel="stylesheet" type="text/css" href="d:/html blog/style.css">
</head>
<body>
<p class="b1"> this is a normal paragraph for change border style with css</p>
<p class="b2"> this is a normal paragraph for change border style with css</p>
<p class="b3"> this is a normal paragraph for change border style with css</p>
<p class="b4"> this is a normal paragraph for change border style with css</p>
<p class="b5"> this is a normal paragraph for change border style with css</p>
</body>
</html>
CSS FILE:
.b1{border: 2px solid black;}
.b2 {border: 2px dashed blue;}
.b3 {border: 2px double blue;}
.b4 {border: 2px groove orangered;}
.b5 {border: 2px inset violet;
padding: 20px 30px 15px 40px;
border-radius: 20%;}
When you run a file it will be look like this:
Comments
Post a Comment