100% height effect with divs - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

100% height effect with divs

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
.container {<!--from   w  w  w .  jav  a  2  s . com-->
   height:201px;
   width:201px;
   position:relative;
   border:6px solid Chartreuse;
}

.left-column {
   width:100px;
   background-color:yellow;
   left:0;
}

.right-column {
   width:100px;
   background-color:blue;
   right:0;
}

.column {
   position:absolute;
   top:0;
   bottom:0;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="left-column column"></div> 
   <div class="right-column column"></div> 
  </div>  
 </body>
</html>

Related Tutorials