HTML CSS examples for CSS Layout:Flex Responsive
Responsive tile layout with flexbox for various tiles
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container1 {<!-- w w w . j av a 2 s . c o m--> width: 220px; height: 215px; float: left; } .box, .bigbox, .widebox { background-color: olive; width: 100px; height: 100px; margin: 5px; float: left; } .bigbox { background-color: olive; width: 210px; height: 210px; float: left; } .widebox { background-color: olive; width: 210px; height: 100px; } </style> </head> <body> <div id="container1"> <div class="box"> Box 2 </div> <div class="box"> Box 3 </div> <div class="box"> Box 4 </div> <div class="box"> Box 5 </div> </div> <div class="container"> <div class="bigbox"> Box 1 </div> <div class="box"> Box 6 </div> <div class="box"> Box 7 </div> <div class="widebox"> Box 8 </div> <div class="box"> Box 9 </div> <div class="box"> Box 10 </div> <div class="box"> Box 11 </div> <div class="box"> Box 12 </div> <div class="box"> Box 13 </div> <div class="box"> Box 14 </div> <div class="box"> Box 15 </div> <div class="box"> Box 16 </div> <div class="box"> Box 17 </div> <div class="box"> Box 18 </div> <div class="box"> Box 19 </div> </div> </body> </html>