The deeper the level and the darker the color - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Color

Description

The deeper the level and the darker the color

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">

.class {<!-- ww w. j  av  a2  s.c  o m-->
   width:200px;
   height:100px;
   padding:20px;
   border: 1px solid rgba(0,0,0,.8);
}
.class *{
   width:100%;
   height:100%;
}
.class .class{
   border: 1px solid rgba(0,0,0,.6);
}
.class .class .class{
   border: 1px solid rgba(0,0,0,.4);
}
.class .class .class .class{
   border: 1px solid rgba(0,0,0,.2);
}


      </style> 
 </head> 
 <body> 
  <div class="class"> 
   <div class="class"> 
    <div class="class"> 
     <div class="class"></div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials