We would like to know how to create layered border with box shadow.
<!DOCTYPE html>
<html>
<head>
<!--from w ww . ja va 2s .c o m-->
<style type='text/css'>
.double-border {
background-color: #ccc;
border: 4px solid #fff;
box-shadow: inset 0 0 0 4px #eee, inset 0 0 0 8px #ddd, inset 0 0 0 12px
#ccc, inset 0 0 0 16px #bbb, inset 0 0 0 20px #aaa, inset 0 0 0 20px
#999, inset 0 0 0 20px #888;
padding: 3em;
width: 16em;
height: 16em;
}
</style>
</head>
<body>
<div class="double-border">Multiple borders. </div>
</body>
</html>
The code above is rendered as follows: