Z-index "stacking" in creating a shadow - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Z-index "stacking" in creating a 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">
.parent {<!--  ww  w . j  av  a2 s  .  c  om-->
   background:white;
   z-index:3;
   height:201px;
   box-shadow:0px 6px 6px 0px Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="parent"> 
   <div class="shadow">
     Lorem ipsum do 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials