Hi everyone, can anyone help with this frustrating problem.
Basicaly what I am trying to do using div's is, place three text boxes within a container div, a left and right text box, and a footer text box.
The page content, and so length will vary, an I need the footer to push down with the content and stay at the bottom of the page.
I know that using position absolute in the page div's is messing things up but nothing I have tried from all of the sticky footer methods I have found on the net works to cure this problem.
I can do it easily with tables but I am trying to avoid them.
This is the basic script with position absolutes that I started with:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head></head>
<body>
<div id="container">
<div id="left">left content</div>
<div id="right">right content</div>
<div id="footer">footer content</div>
</div>
</body>
</html>
Code:
#container {
width: 1000px;
margin: 0 auto;
position: relative;
}
#left {
position: absolute;
top: 200px;
left: 106px;
text-align: center;
}
#right {
position: absolute;
top: 200px;
left: 485px;
text-align: center;
}
#footer {
position: absolute;
top: 568px;
left: 359px;
}
Last edited by chrishirst; 02-21-2011 at 03:49 PM..
|