Shadows sticking to sides of the site - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Shadows sticking to sides of the site

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">
html,<!--from ww  w.  ja  v a  2s .  co  m-->
body {
   min-height:100%;
   height:100%;
}

body {
   box-shadow:inset 100px 0 100px -100px Chartreuse,
   inset -100px 0 100px -100px yellow;
}

div {
   margin:0 auto;
   text-align:center;
   width:401px;
}
</style> 
 </head> 
 <body> 
  <div>
    Lorem ips 
  </div>  
 </body>
</html>

Related Tutorials