html, body {
margin: 0px auto;
height: 100%;
}
div.container {
background-color: #33425C;
width: 787px;
margin: 0px auto;
min-height: 50%;
}
div.header {
background-image: url(../images/header.jpg);
background-repeat: no-repeat;
height: 200px;
width: 787px;
margin-top: -1px;
}
div.header_tekst {
text-align: right;
padding-top: 155px;
padding-right: 4px;
}
div.midden {
background-color: #33425C;
height: 100%;
}
div.footer {
position: absolute;
text-align: center;
bottom: 0px;
background-color: #33425C;
width: 787px;
}
En mijn html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link type="text/css" href="css/style.css" />
</head>
<body>
<center>
<div class="container">
<div class='header'><div class="header_tekst">Disclaimer - Sitemap</div></div>
<div class="midden">Test</div>
<div class="footer">Footer</div>
</div>
</center>
</body>
</html>
Ik zal even een voorbeeld online gooien, 1 moment a.u.b...
Mvg Joost.
Edit:kliki