HTML CSS examples for CSS Form:Width
Layout tile with various size
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .gridContainer {<!--from w ww .ja v a 2 s.c o m--> display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; max-height: 1080px; // box height *3 + margin-bottom*3 -> 350*3 + 10*3 } .gridItems { width: 290px; height: 350px; margin: 0 5px 10px; border-radius: 4px; background-color: #ccc; } .gridItemsTall { height: 710px; } </style> </head> <body> <div class="gridContainer"> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems"></div> <div class="gridItems gridItemsTall"></div> </div> </body> </html>