I'm trying to set the height of a div to 100% of the *remaining* container, however, my css-foo is weak.
I've built a bit of HTML to illustrate my point:
- Code: Select all
<style type="text/css">
*{padding: 5px;margin: 5px;}
html{height: 100%;}
body{height: 100%;}
</style>
<div id="container" style="height: 100%; background-color: Red;">
<div id="header" style="height: 100px; background-color: Blue;">
</div>
<div id="content" style="height: 100%; background-color: Green;">
</div>
</div>
I would like to make the green div not extend outside the red div (no scrollbar).
I also cannot use "overflow:hidden" because i need to center somthing inside the green div afterwards.
the more complicated example (in process) is up here: http://smallnet.org/Gallery.aspx incase anybody is interested.
Thank you very much in advance.



