Use box shadow to create paper effect - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Use box shadow to create paper effect

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 {<!--  w w w.  j  a v a2s  .co m-->
   background-color:Chartreuse;
}

#MainContent {
   display:block;
   float:left;
   min-height:301px;
   min-width:301px;
   padding:11px;
}

#logo {
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-repeat:no-repeat;
   height:445px;
   left:-99px;
   margin-top:6px;
   opacity:0.8;
   position:absolute;
   width:382px;
   z-index:-2;
}

.Page {
   -moz-box-shadow:0 16px 11px yellow;
   -webkit-box-shadow:0 16px 11px blue;
   background:pink;
   box-shadow:0 16px 11px OrangeRed;
   margin:auto;
   position:relative;
   width:401px;
   min-height:201px;
   padding-bottom:21px;
}

.Page:after {
   content:".";
   display:block;
   height:0;
   clear:both;
   visibility:hidden;
}
</style> 
 </head> 
 <body> 
  <meta name="viewport" content="width=device-width"> 
  <section class="Page"> 
   <figure id="logo"></figure> 
   <header> 
    <a href="~/"></a> 
   </header> 
   <section id="MainContent"> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
    <label>Lore<br> </label> 
   </section> 
   <section id="Sidebar"> 
   </section> 
  </section>  
 </body>
</html>

Related Tutorials