Hi
Im developing a website, and im having troubles making it look right, because i have a div that should resize to the page height, but still leave room for the header and footer. And it’s not working!
This is how the site is structured :
<div id="wrapper">
<div id="menu">
here is the top content, banner and menu
</div>
<div id="content">
Heres the problem, i need this div to resize so it fits the height of the window, so if you have a very small screen, it will probably have scrollbars, and if you have a huge screen, it will resize to fit that height
</div>
<div id="footer">
and here should be some more stuff, but your not supposed to scroll down to see it. It should be on screen always, right after the content div.
</div>
</div>
And heres my CSS (simplifyed) :
html, body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
height:100%;
min-height:100%;
min-width: 100%;
}
#wrapper{
width:874px;
position:absolute;
left:50%;
margin-left:-437px;
background-color:#FF2800;
height:100%;
}
#menu {
font-size: 16px;
font-weight: bold;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
padding: 10px 10px 10px 10px;
float: left;
}
#content {
background-color: #FFFFFF;
width: 734px;
padding: 30px 50px 30px 50px;
margin: 0px 20px 0px 20px;
overflow:auto;
overflow-x:hidden;
}
#footer {
width: auto;
text-align: right;
background-color: #0000FF;
padding: 10px 20px 20px 20px;
}
Please help me out, since im getting very close to a deadline