brettr
asked on
How to get footer on bottom?
In the code snippet, how do I get the footer on the bottom of the page and centered?
Also, how do I get everything to stay in the middle of the page, except the footer, which will expand all the way across?
Also, how do I get everything to stay in the middle of the page, except the footer, which will expand all the way across?
<html>
<head></head>
<body>
<div>top div here</div>
<div style="float:left;text-align:center;width:200;height:200px;border:1px solid black;padding:10px;margin:10px;">box 1</div>
<div style="float:left;text-align:center;width:200;height:200px;border:1px solid black;padding:10px;margin:10px;">box 2</div>
<div style="float:left;text-align:center;width:200;height:200px;border:1px solid black;padding:10px;margin:10px;">box 3</div>
<div id="footer" style="position:relative;">
a footer here
</div>
</body>
</html>
ASKER
Thanks but I'm not interested in tables.
ASKER
I think the code below might be all I need for the footer part at least.
<div id="footer" style="clear:both;">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window