Create Equal height columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Create Equal height columns

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

.outer {<!--  w  w w.java2 s.  co  m-->
   display: flex;
   flex-wrap: wrap;
}
.inner {
   background: #fff;
   border: 1px solid #000;
   padding: 10px;
   margin-bottom: 20px;
   width:20%;
   text-align: left;
   box-sizing: border-box;
}


      </style> 
 </head> 
 <body> 
  <div class="outer"> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
    <br> INNER DIV 
    <br> INNER DIV INNER DIV 
    <br> INNER DIV INNER 
    <br> DIV INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
   <div class="inner">
     INNER DIV 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials