So i'm comming from table design webpages and thought i'd give div and CSS a try, so I hope you can help me on this.
Situation:
I currently have the following div structure:
<div id="header">
<div id="headline">
</div>
<div id="login">
</div>
</div>
<div style="clear: both;" />
<div id="mainbody" style="border-top: black solid 2px;">
<div id="menu">
</div>
<div id="bodyContent">
</div>
</div>
<div style="clear: both;"></div>
<div id="footer"></div>
And I have the following CSS coding:
#mainbody
{
background-color: white;
width: 1000px;
margin-left: auto;
margin-right: auto;
}
#menu
{
width: 137px;
float: left;
background-color: #EEEEEE;
padding-left: 3px;
}
#bodyContent
{
float: right;
width: 850px;
background-color: white;
padding: 5px;
}
#headline
{
width: 693px;
height: 75px;
float: left;
background-color: white;
font-family: monospace;
font-size: 48pt;
font-weight: bold;
padding-left: 7px;
}
#login
{
height: 75px;
width: 300px;
float: right;
background-color: white;
}
#header
{
background-color: white;
width: 1000px;
margin-left: auto;
margin-right: auto;
}
#footer
{
border-top: black solid medium;
width: 1000px;
background-color: white;
margin-left: auto;
margin-right: auto;
height: 50px;
}
Problem:
The "menu" and "bodyContent" divs have different heights through out my pages. So if i have a fairly large "bodyContent" page, the "menu" div will not go all the way down to the "footer" div. The same problem exists if the "menu" div is higher than "bodyContent" div.
I would like for both "menu" and "bodyContent" divs to have the same height/go down to the footer div.
I have tried looking for solution but the so far haven't got any result that i was expecting. I'm hoping you guys can help me on this.
Thanks