HTML CSS examples for CSS Layout:Flex Column
Flexbox Layout, Rows and Columns
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #header, #main, #search, #other {<!-- w w w.j a v a 2s .c o m--> padding:2em; box-sizing:border-box; border:2px solid Chartreuse; margin-bottom:2em; } #main { min-height:301px; } @media (min-width:768px) { .container { overflow:auto; } #main { width:61%; float:left; } #search { width:41%; float:right; } #other { width:41%; float:right; } } </style> </head> <body> <div id="header"> header </div> <div class="container"> <div id="search"> search </div> <div id="main"> main </div> <div id="other"> other </div> </div> </body> </html>