Div column height - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Div column height

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!-- w  w  w.j a  v a 2 s .  co  m-->
 <body> 
  <div style="width:500px;height:500px;background-color:yellow"> 
   <div style="float:left;height:100%;background-color:green;">
     aaa 
   </div> 
   <div style="float:left;height:100%;background-color:#ff00ff"> 
    <div style="background-color:cyan;height:5%;">
      bbb 
    </div> 
    <div style="background-color:gray;height:95%;">
      ccc 
    </div> 
   </div> ddd 
  </div>  
 </body>
</html>

Related Tutorials