HTML CSS examples for CSS Layout:Box
Set content box 100% height
<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>