The following is my simple html/css structure:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>de titel</title>
<style type="text/css">
* {
color: #FFFFFF;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
background-color: #000000;
}
#wrapper {
width: 800px;
height: 100%;
margin-left: auto;
margin-right: auto;
}
#header {
background-color: lightblue;
position: absolute;
top: 0;
width: 800px;
border: 1px solid red;
height: 60px;
}
#content {
height: 100%;
margin-top: 60px;
margin-bottom: -60px;
}
#menu {
width: 200px;
height: 100%;
border: 1px solid red;
background-color: gray;
float: left;
padding: 5px 0 0 5px;
}
#text {
background-color: orange;
height: 100%;
margin-left: 200px;
padding-top: 5px;
padding-left: 15px;
margin-right: -2px;
border: 1px solid red;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<br><center>[ hier moet een header image worden toegevoegd ]</center>
</div>
<div id="content">
<div id="menu">
Link 1
</div>
<div id="text">
<h1>Titel</h1>
<p>Dit is de tekst van je pagina.</p>
</div>
</div>
</div>
</body>
</html>
The question I have: "why isn't the bottom-margin: -60px; causing the content layer to decrease in 60 pixels height so that the scrollbar is not shown because of the header? how should I solve this in the cleanest possible way?"
Thanks in advance.