Column getting the full height of wrapper div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Column getting the full height of wrapper 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">

#one {<!--from  w  w w. j a  v a 2 s  . c  om-->
   height: 100%;
   background-color: tomato;
}
#two {
   height: 100px;
}
#two div {
   height: 100%;
   background-color: red;
}
.space {
   height: 5px;
   background-color: black;
}


      </style> 
 </head> 
 <body> 
  <div id="one"> one
  </div> 
  <div class="space"></div> 
  <div id="two"> two
   <div>test</div> 
  </div>  
 </body>
</html>

Related Tutorials