Flexbox Layout, Rows and Columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Column

Description

Flexbox Layout, Rows and 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">
#header, #main, #search, #other {<!--   w  w  w.j a  v  a 2s .c  o m-->
   padding:2em;
   box-sizing:border-box;
   border:2px solid Chartreuse;
   margin-bottom:2em;
}

#main {
   min-height:301px;
}

@media (min-width:768px)  {
   .container {
      overflow:auto;
   }
   
   #main {
      width:61%;
      float:left;
   }
   
   #search {
      width:41%;
      float:right;
   }
   
   #other {
      width:41%;
      float:right;
   }

}
</style> 
 </head> 
 <body> 
  <div id="header">
    header 
  </div> 
  <div class="container"> 
   <div id="search">
     search 
   </div> 
   <div id="main">
     main 
   </div> 
   <div id="other">
     other 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials