make shadow 100% width under div - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

make shadow 100% width under div

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 {<!--   www  .  j  ava  2 s  . c  om-->
   margin:0;
   padding:0;
   background-color:Chartreuse;
}

#head {
   width:100%;
   height:61px;
   background-color:yellow;
   box-shadow:0 11px 18px 0px blue;
   position:fixed;
}

#content {
   width:901px;
   padding-top:61px;
   min-height:100px;
   background-color:pink;
   margin-right:auto;
   margin-left:auto;
}
</style> 
 </head> 
 <body> 
  <div id="head"> 
  </div> 
  <div id="content"> 
  </div>  
 </body>
</html>

Related Tutorials