Make max-width columns fluid - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Make max-width columns fluid

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

.row {<!--from   w  w w  .  j a va2s  .com-->
   float:left;
   max-width:960px;
   width:100%;
}
.column {
   float:left;
   margin:0 15px;
   border:1px solid black;
}
.column:first-child {
   margin-left:0;
}
.column:last-child {
   margin-right:0;
}
.column.third {
   width:100%;
   max-width:300px;
}
      </style> 
 </head> 
 <body> 
  <div clas="row"> 
   <div class="column third">
     content 
   </div> 
   <div class="column third">
     content 
   </div> 
   <div class="column third">
     content 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials