Create three column flexbox - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Column

Description

Create three column flexbox

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">
body, html {
   width:100%;
   height:100%;
   padding:0;
   margin:0;
}

div {<!-- w w  w. j a v  a  2 s .  c o  m-->
   box-sizing:border-box;
   border:2px dotted Chartreuse;
   overflow:hidden;
}

.main {
   height:100%;
   width:100%;
   display:flex;
   flex-direction:row;
   flex-grow:2;
}

.main div {
   flex:2 2 31%;
}
</style> 
 </head> 
 <body> 
  <div class="main"> 
   <div class="left">
     left 
   </div> 
   <div class="center">
     article article article article article article article article article article article article article article article article article 
   </div> 
   <div class="right">
     right 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials