Hi dear welcome to "CodePrime" Blog . In this post we are going to learn how to use css box-hadow property. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Box Shadow by codeprime- bangladesh</title>
</head>
<body>
<div class="box"></div>
</body>
</html>
CSS
.box{
width: 200px;
height: 200px;
background-color: red;
border-radius: 5px;
margin: 30vh auto;
box-shadow: 0 0 20px blue,
inset 0 0 50px blue;
}
0 Comments