HTML CSS examples for CSS Layout:2 Column
Create 2 column layout, make divs either equal to height of longest or height of viewport
<html lang="en"> <head> <title> Mike Botsko</title> <style> html, body { margin:0; height:100%; width:100%; overflow-y:scroll; } #wrapper {<!--from ww w . j av a2 s. c o m--> display:table; min-height:100%; table-layout:fixed; } #wrapper>div { display:table-cell; min-height:100%; } #wrapper>div:first-child { background:snow; width:21vw; } #wrapper>div:last-child { background:teal; width:81vw; height:100% } #wrapper .content { min-height:100vh; } </style> </head> <body translate="no"> <div id="wrapper"> <div> <div class="content"> left </div> </div> <div> <div class="content"> right </div> </div> </div> </body> </html>