I have been spending hours trying to solve this but without any result.
What I want is really simple (in theory). I want a fullscreen webpage with a header that always stays at the top and a footer that always stays at the bottom. The content is dynamic. If it exceeds the page, it should grow, pushing the footer down. I want a 980 pixel wide div in the content that is horizontally centered. I want to give that div a different color that the background color. If the content is only one line of text, I still want to div (the background color) to be a 100% of the room between the footer and header. I made a colorful example:

The code I have so far:
<html>
<head>
<style>
#container {
height: 100%;
width: 100%;
background: green;
position: absolute;
}
#header, #footer {
height: 100px;
width: 100%;
background: red;
}
#body {
height: 100%;
width: 100%;
background: blue;
}
#content {
width: 980px;
background: yellow;
}
</style>
<head>
<body>
<div id="container">
<div id="header"></div>
<div id="body">
<div id="content">
content
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
This code is far from okey. First of all it cannot keep the footer at the bottom of the page if the content exceeds the page. Secondly, I have no idea how to include the 980px centered div.
position. fixedfor them ;) - Terry