Et eksempel på problemet med det border:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<style type="text/css">
html, body {
height: 100%;
padding: 0;
margin: 0;
}
p {margin:0px;}
.bord, .bordbut {height:1px;background:#000;overflow:hidden;width:100%;}
.bordbut {position:absolute;bottom:0px;}
#center, #venstre, #top, #bund {position:relative;}
#center {
height: 80%;
width: 90%;
float:left;
background: #000;
}
#c2 {
height: 100%;
margin: 0px 1px;
background: #008000;
}
#venstre {
height: 100%;
width: 10%;
float:left;
background: #000;
}
#v2 {
height: 100%;
margin-left:1px;
background: #66f;
}
#top {
height:10%;
width: 90%;
float:left;
background: #000;
}
#t2 {
height: 100%;
margin-right:1px;
background: #66f;
}
#bund {
height:10%;
width: 90%;
float:left;
background: #000;
}
#b2 {
height: 100%;
margin: 0px 1px;
background: #fff;
}
</style></head>
<body>
<div id="venstre"><div id="v2">
<div class="bord"></div><div class="bordbut"></div>
<p>en boks</p>
</div></div>
<div id="top"><div id="t2">
<div class="bord"></div><div class="bordbut"></div>
<p>top</p>
</div></div>
<div id="center"><div id="c2">
<div class="bordbut"></div>
<p>center</p>
</div></div>
<div id="bund"><div id="b2">
<div class="bordbut"></div>
<p>bund</p>
</div></div>
</body></html>
... hvis man har muligheden for at skjule scrollers
kan man rette det lidt op ved at tilføje denne i css:
html {
overflow:hidden;
border: 0px;
}
... evt. kombineret med noget overflow som i dette eksempel:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<style type="text/css">
html, body {
height: 100%;
padding: 0;
margin: 0;
}
html {
overflow:hidden;
border: 0px;
}
p {margin:0px;}
.bord, .bordbut {height:1px;background:#000;overflow:hidden;width:100%;}
.bordbut {position:absolute;bottom:0px;}
#center, #venstre, #top, #bund {position:relative;}
#center {
height: 80%;
width: 90%;
float:left;
background: #000;
}
#c2 {
height: 100%;
margin: 0px 1px;
background: #008000;
overflow:auto;
}
#venstre {
height: 100%;
width: 10%;
float:left;
background: #000;
}
#v2 {
height: 100%;
margin-left:1px;
background: #66f;
}
#top {
height:10%;
width: 90%;
float:left;
background: #000;
}
#t2 {
height: 100%;
margin-right:1px;
background: #66f;
}
#bund {
height:10%;
width: 90%;
float:left;
background: #000;
}
#b2 {
height: 100%;
margin: 0px 1px;
background: #fff;
}
</style></head>
<body>
<div id="venstre"><div id="v2">
<div class="bord"></div><div class="bordbut"></div>
<p>en boks</p>
</div></div>
<div id="top"><div id="t2">
<div class="bord"></div><div class="bordbut"></div>
<p>top</p>
</div></div>
<div id="center"><div id="c2">
<div class="bordbut"></div>
<p>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br>center<br></p>
</div></div>
<div id="bund"><div id="b2">
<div class="bordbut"></div>
<p>bund</p>
</div></div>
</body></html>