Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Anyhow, I loaded the code you gave into a browser, and don't see anything out of place. Very simple, header, footer, content, although I would remove all that absolute positioning, since it simply serves no purpose and could cause trouble down the road.
To make a header, content, footer, all you need to do is place all three inside of a wrapper element, center the wrapper(if desired), then allow each of its children to naturally take its form. This way you don't need to set any widths on the children (#header, #content, and #footer), or center any of them, as they will automatically be as wide as all of the available space in the wrapper:
HTML Code:
<div id="wrapper">
<div id="header">
<!--some content-->
</div>
<div id="content">
<!--some more content-->
</div>
<div id="footer">
<!--and more content-->
</div>
</div> <!--end of wrapper-->
Last edited by wayfarer07; 07-20-2008 at 04:46 PM..
|