HTML CSS examples for CSS Layout:2 Column
Positioning two horizontal divs in a dynamic way
<html lang="en"> <head> <style> body {<!--from w w w . j av a 2s. co m--> background:black; color:Chartreuse; } #outer { display:flex; flex-direction:column; } html, body , #outer { height:100%; margin:0; } #a { overflow:auto; } #b { background:blue; min-height:201px; } </style> </head> <body translate="no"> <div id="outer"> <div id="a"> Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br>Lorem <br> </div> <div id="b"></div> </div> </body> </html>