CSS3 Drop Shadow - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

CSS3 Drop Shadow

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.myDiv {<!--from w ww .  j  ava  2s .c o m-->
   width:100px;
   height:100px;
   background:red;
   position:relative;
}

.myDiv:after {
   content:"";
   display:block;
   width:76px;
   height:100px;
   margin-left:21px;
   position:absolute;
   z-index:-2;
   -webkit-box-shadow:0px 11px 6px 0px Chartreuse;
   -moz-box-shadow:0px 11px 6px 0px yellow;
   box-shadow:0px 11px 6px 0px blue;
}
</style> 
 </head> 
 <body> 
  <div class="myDiv"></div>  
 </body>
</html>

Related Tutorials