Place an element with height:auto at the bottom of its parent - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Parent Container

Description

Place an element with height:auto at the bottom of its parent

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">
.container{<!-- w  w  w  . j a v  a  2 s  .  co m-->
}
.col {
   display:inline-block;
   vertical-align:bottom;
   background:red;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="col">
     one row 
   </div> 
   <div class="col">
     one row 
    <br> one row 
   </div> 
   <div class="col">
     one row 
    <br> one row 
    <br> one row 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials