I'm working on modifying a WordPress theme to have a fluid width and I've got it working except for one thing - the footer wants to tuck itself underneath the last elements on the sidebar on the left. What I want is to display the footer on the sidebar but at the very bottom.
The elements look like this:
HTML Code:
<div id="main">
<div id="content"
style="position:absolute; left:260px; width:auto; margin: 0 15px 0 0">
</div>
<div id="sidebar">...</div>
<div>
<div id="footer"></div>
Styles:
Code:
body
{
font-size: 100.01%;
font-family: Verdana, Arial, sans-serif;
padding: 0;
margin: 0;
backgroun: #fff url(images/bg.png) repeat-y top left;
}
#main
{
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
}
#content
{
padding: 0;
text-align: left;
color: #242424;
background-color: #fff;
font-size: 0.8em;
}
#sidebar
{
width: 240px;
margin: 0;
padding: 0;
color: #f3f3f3;
font-size: 0.9em;
font-family: Arial, Helvetica, sans-serif;
}
#footer
{
padding: 20px 0;
margin: 20px 10px;
width: 220px;
font-size: 0.8em;
background: top left repeat-x;
text-align: left;
color: #aaa;
}
When I specify the position:absolute style for the footer and specify bottom:0, it places it relative to the browser window (IE7). How do I tell it to put the footer at the very bottom of the page?
You can see an example of this on my blog at http://DPotter.net/Technical/.
Thanks,
David
Last edited by DavidPotter; 01-17-2008 at 05:19 PM..
Reason: Changed "right" to "left" in title
|