Also ich hab hier was, das funktioniert im FF (min-height) aber nicht im IE. Den Content anklicken, dann wird der weiter gefüllt.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<style type="text/css">
*
{
margin: 0;
padding: 0;
}
body
{
background-color: #aaa;
}
#head
{
height: 100px;
background-color: #bbb;
}
#wrapper
{
position: absolute;
min-height: 100%;
left: 50%;
width: 760px;
margin-left: -380px;
background-color: #daa;
margin-bottom: 100px;
}
#content
{
background-color: #ccc;
margin-bottom: 100px;
}
#footer
{
position: absolute;
bottom: 0;
height: 100px;
width: 760px;
background-color: #ddd;
}
</style>
<body>
<div id="wrapper">
<div id="head"><h1>Kopf</h1></div>
<div id="content" onClick="con(450)">
<script type="text/javascript">
function con(c)
{
var td = document.getElementById("content");
var text = td.innerHTML;
for (var i = 0; i < c; i++)
text += "Lorem ipsum. ";
td.innerHTML = text;
}
con(50);
</script>
</div>
<div id="footer">Footer</div>
</div>
</body>
</html>
Vielleicht kann das ein Auskenner hier so anpassen, dass es auch im IE und anderen Browsern klappt die ich momentan nicht austesten kann.
Gruß,
Stephan