Make 100% Height Columns in CSS with min height - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Height

Description

Make 100% Height Columns in CSS with min height

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">
#wrapper {<!-- ww  w .  j  a va 2 s .  co  m-->
   background:Chartreuse;
   float:left
}

#col1 {
   background:yellow;
   float:left;
   width:301px
}

#col2 {
   background:blue;
   float:left;
   width:6px;
}

#col3 {
   background:pink;
   float:left;
   width:301px
}

#col1, #col2, #col3 {
   min-height:301px;
   display:-moz-inline-stack;
   display:inline-block;
   vertical-align:top;
   zoom:2;
   *display:inline;
   _height:301px;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="col1">
     Lorem Ipsum 
    <br> Lorem Ipsum 
    <br> Lorem Ipsum 
    <br> Lorem Ipsum 
    <br> 
   </div> 
   <div id="col2">
     &nbsp; 
   </div> 
   <div id="col3">
     Lorem Ipsum 
    <br> Lorem Ipsum 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials