Drop shadow to create flip edge - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Drop shadow to create flip edge

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>
#box {<!--from   w w  w. j av a  2  s .  c om-->
   position:relative;
   width:61%;
   background:Chartreuse;
   border-radius:5px;
   padding:3em 2.6em;
   color:yellow;
   text-shadow:0 2px 0 blue;
   line-height:2.6;
   margin:61px auto;
}

#box:before, #box:after {
   z-index:-2;
   position:absolute;
   content:"";
   bottom:16px;
   left:11px;
   width:51%;
   top:81%;
   max-width:301px;
   background:pink;
   box-shadow:0 16px 11px OrangeRed;
   transform:rotate(-4deg);
}

#box:after {
   transform:rotate(4deg);
   right:11px;
   left:auto;
}
</style> 
 </head> 
 <body> 
  <div id="box">
    Lorem 
  </div>  
 </body>
</html>

Related Tutorials