Box-shadow over floating divs - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Box-shadow over floating divs

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, c</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
div.bs {<!--from w w w. j a v  a 2 s.  c o m-->
   float:left;
   clear:left;
   width:201px;
   height:201px;
   background:Chartreuse;
   box-shadow:0 9px 9px yellow;
   -moz-box-shadow:0 9px 9px blue;
   -webkit-box-shadow:0 9px 9px pink;
}

div.up {
   z-index:11;
   position:relative;
}
</style> 
 </head> 
 <body> 
  <div class="bs up"></div> 
  <div class="bs"></div>  
 </body>
</html>

Related Tutorials