HTML CSS examples for CSS Layout:Flex
Set flex item size
<html lang="en"> <head> <style> .section-header {<!-- ww w . ja v a 2 s . c o m--> border-top:2px solid Chartreuse; background:blue; } .section { margin-top:21px; background:orange; padding:21px; } .desc-label { padding-top:11px; flex:2 0 100%; height:100px; background:green; } .row { width:51%; max-width:701px; margin:0 auto; display:flex; flex-wrap:wrap; padding-top:21px; background:lightblue; height:401px; } .section-title { flex:2 0 100%; height:100px; background:purple; } </style> </head> <body translate="no"> <div class="section"> <div class="row section-header"> <div class="section-title"> Engine </div> <div class="desc-label"> Template Element: Recipe Ingredient </div> </div> </div> </body> </html>