HTML CSS examples for CSS Widget:Grid
Css grids auto span available space
<html lang="en"> <head> <style> .flex-wrapper {<!-- ww w . j av a2 s .c o m--> display:flex; flex:2; flex-wrap:wrap; } .block1, .block2 { min-width:301px; height:51px; flex-grow:2; } .block1 { width:34.334%; background-color:Chartreuse; } .block2 { width:67.6667%; background-color:yellow; } </style> </head> <body translate="no"> <div class="flex-wrapper"> <div class="block1"></div> <div class="block2"></div> </div> </body> </html>