HTML CSS examples for CSS Layout:Div Align
Aligning Horizontal Div's Side By Side and Stacked
<html lang="en"> <head> <title> Sergi Oca</title> <style> .full-wrap {<!-- w ww . j a va 2s .c o m--> display:flex; flex-wrap:wrap; } .first-wrap { display:flex; flex-direction:column; flex:2; min-width:301px; } .box3 { min-width:501px; height:361px; border:2px solid Chartreuse; flex:3; } .box2 { flex:2; height:361px; border:2px solid yellow; min-width:301px; } .box { height:181px; border:2px solid blue; } </style> </head> <body translate="no"> <div class="full-wrap"> <div class="first-wrap"> <div class="box"></div> <div class="box"></div> </div> <div class="box2"></div> <div class="box3"></div> </div> </body> </html>