how to give shadow to all the side of the div

how to give shadow to all the side of the div

This post helps you to create a shadow all the four sides of the div using box-shadow in css.  This was very helpful when u create a website we can use the borders shadow in outer line of your container it is looking good and it will helps to improve your website quality

all-side-shadow


index.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>crate shadow to all the side</title>

<style>

.san
{

width:800px;
height:1500px;
background-color:#EAEAEA;
border:1px solid #909090;
margin-left:auto;
margin-right:auto;
box-shadow:0px 5px 15px;


}

</style>
</head>

<body>

<div class="san"> This is shadow for all the side</div>


</body>
</html>

Post a Comment

0 Comments