CSS3 box-shadow:inset on one side - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

CSS3 box-shadow:inset on one side

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">
body {<!--from  ww w .j  av  a 2  s  .co m-->
   background-color:Chartreuse;
}

.awesome {
   background-color:yellow;
   margin-top:100px;
   padding:11px;
   border-top:5px solid blue;
   box-shadow:inset 0 -9px 5px 5px pink,
   inset 0 3px 5px 0px rgba(51, 51, 51, 0.76);
}
</style> 
 </head> 
 <body> 
  <div class="awesome">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. 
  </div>  
 </body>
</html>

Related Tutorials