Wat moet er volgens jou gebeuren als je de website schaalt? Als de content verticaal gecentreerd moet zijn, dan zal die balk sowieso een keer boven uit de pagina gedrukt worden, tenzij je wilt dat de balk over de content heen gaat.
Bedoel je toevallig zoiets? :
[code:1:a3d8fa506b]<!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" />
<meta name="generator" content="Adobe GoLive" />
<title>test</title>
<style type="text/css" media="screen">
<!--
body {
color: black;
font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif;
background-color: #858585;
margin: 0px;
padding: 0px;
}
#layer2 {
position: absolute;
background-color: #aaa7a8;
height: 80%;
width: 100%;
top: 10%;
}
#content {
background-color: #FFFFFF;
height: 400px;
width: 100%;
left: 0;
top: 50%;
position: absolute;
visibility: visible;
margin-top: -200px;
}
–></style>
</head>
<body>
<div id="layer2">
<div id="content">content</div>
</div>
</body>
</html>[/code:1:a3d8fa506b]