Create two column of anchor list with Equal height rows using flex-direction: column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Column

Description

Create two column of anchor list with Equal height rows using flex-direction: column

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">
#container {<!--   w ww  .  j  a v a2s  .c  om-->
   display:flex;
}

#container .col {
   flex-grow:2;
   display:flex;
   flex-direction:column;
   background:grey;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div class="col"> 
    <a href="">asdf</a> 
    <a href="">asdf</a> 
    <a href="">asdf</a> 
   </div> 
   <div class="col"> 
    <a href="">asdf</a> 
    <a href="">asdf</a> 
    <a href="">asdf</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials