-- og så er det godt at vide, at hvis du sætter noget ind i et positioneret element, vil det flytte rundt med det, f.eks.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Positioneret</title>
<meta name="Generator" content="Stone's WebWriter 4">
<meta name="keywords" content="roenving,
http://www.eksperten.dk/spm/454661"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
html,body{
height:100%;
width:100%;
margin:0px;
padding:0px;
text-align:center;
}
#site{
position:relative;
z-index:1;
margin-left:auto;
margin-right:auto;
width:760px;
height:100%;
top:0px;
left:0px;
background:#eee;
text-align:left;
}
#banner{
position:relative;
z-index:1;
width:100%;
height:100px;
background:#fee;
}
#main{
position:relative;
width:100%;
height:100%;
top:0px;
left:0px;
z-index:0;
padding-top:100px;
margin-top:-100px;
background:#aee;
}
#menu{
position:relative;
z-index:1;
width:120px;
height:100%;
top:0px;
left:0px;
background:#efe;
float:left;
text-align:center;
}
#content{
position:relative;
width:640px;
height:100%;
float:left;
background:#eef;
}
</style>
<script language="javascript" type="text/javascript">
</script>
</head>
<body>
<div id="site">
<div id="banner"></div>
<div id="main">
<div id="menu">
Menuen
</div>
<div id="content">
Indholdet, f.eks. en iframe
<div>
</div>
</div>
</body>
</html>