div's height like remaining height

Posted by Erick on Stack Overflow See other posts from Stack Overflow or by Erick
Published on 2010-06-08T13:14:09Z Indexed on 2010/06/08 13:22 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

i have two div

 <div id="uno">
    text      
 </div>
 <div id="due">
    text
 </div>

div#uno{
  width:300px; 
  height: 100px;
  border: 1px solid blue;
  overflow:hidden;
}

div#due{
   width:300px; 
   height: 200px; 
   border: 1px solid yellow;
    overflow:scroll;
}

how can i have the height of the div id="due" equal to the remaining height of the page?

© Stack Overflow or respective owner

Related posts about html

Related posts about css