Responsive flexbox - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Responsive

Description

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

.margin {
   border:3px solid #000000;
}
.container {<!--from   w  ww. j a va 2 s.c om-->
   display:flex;
   flex-wrap:wrap;
   margin:-10px 0 0 -10px;
}
.box {
   height:100px;
   background-color:#555555;
   margin:10px 0 0 10px;
   flex-grow:1;
   min-width:300px;
}


      </style> 
 </head> 
 <body> 
  <div class="margin"> 
   <div class="container"> 
    <div class="box one"></div> 
    <div class="box two"></div> 
    <div class="box three"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials