Make wrapping flex-row start the third row in a new column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Column

Description

Make wrapping flex-row start the third row in a new column

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>  Brett DeWoody</title> 
  <style>

.team {<!--from   w ww  .  ja va 2 s.  c  o  m-->
   float: left;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   width: 600px;
   background-color: yellow;
}
.member {
   width: 100px;
   height: 200px;
   margin: 10px;
   background-color: red;
}
#hint { position: absolute; top: 500px; left: 130px; font-weight: bold; }


      </style> 
 </head> 
 <body translate="no"> 
  <div class="team"> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
  </div> 
  <div class="team"> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
   <div class="member"></div> 
  </div>  
 </body>
</html>

Related Tutorials