HTML CSS examples for CSS Layout:2 Column
Two column layout, one column with auto height and the other with auto width
<html> <head> <title>Two column layer</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w w w . ja v a 2s . com--> overflow: hidden; } .aside { float: left; overflow-y:auto; width: 100px; max-height: 200px; background: #ddd; } .main { overflow: hidden; padding-bottom: 99999px; margin-bottom: -99999px; background: #ccc; } </style> </head> <body> <div class="container"> <div class="aside"> <p>Column A</p> <p>Column A</p> <p>Column A</p> <p>Column A</p> <p>Column A</p> </div> <div class="main"> <p>Column B</p> </div> </div> </body> </html>