Set content box 100% height - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Set content box 100% height

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">
.scroll {<!--  w  w w  .ja va2 s . c om-->
   background:silver;
   margin-bottom:11px;
   height:100px;
   overflow:auto;
}
</style> 
 </head> 
 <body> 
  <div class="scroll">
    Lorem ips 
  </div> 
  <div class="scroll">
    Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
   <br>Lorem ipsum dol 
  </div>  
 </body>
</html>

Related Tutorials