Layout tile with various size - HTML CSS CSS Form

HTML CSS examples for CSS Form:Width

Description

Layout tile with various size

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials