Let's say I have this basic html layout:
Header
Auto-sizing DIV
Footer.
Header and footer have fixed pixel size.
<div id="header">
Lorem Ipsum
</div>
<div id="auto">
This div should automatically change size
</div>
</div id="footer">
Lorem Ipsum
</div>
And the CSS
document,body {
width:100%;
height:100%;
}
#header {
width:100%;
height:50px;
}
#auto {
height:100% (it fills 100% of the window height instead the remaining)
}
#footer {
width:100%;
height:50px;
}
How do I make div fill the remaining space?