Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Transparent shadow border on 100% high layout</title>
<style type="text/css">
/*Old Opera Fix*/
body:before {
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/* negate effect of float*/
}
#outer:after {/* instead of using display table for ie8*/
clear:both;
display:block;
height:1%;
content:" ";
}
html, body {
margin:0;
padding:0;
height:100%;
}
h1, p {
margin:0 0 .5em;
padding:5px 10px 0;
}
body { background:#fff; }
#outer {
min-height:100%;
position:relative;
z-index:1;
clear:both;
}
* html #outer { height:100%; }
#inner{/* holds all content*/
padding:1px 0;
position:relative;
z-index:2;
zoom:1.0;
}
.border1, .border1 span {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
border: 5px double #FF0000;
z-index:0;
}
.border1 span {
border:4px groove #00FF00;
}
</style>
</head>
<body>
<div id="outer">
<div id="inner">
<p>testing</p>
<p>testing</p>
<p><a href="#">testing</a></p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
</div>
<div class="border1"><span></span></div>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Transparent shadow border on 100% high layout</title>
<style type="text/css">
/*Old Opera Fix*/
body:before {
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/* negate effect of float*/
}
#outer:after {/* instead of using display table for ie8*/
clear:both;
display:block;
height:1%;
content:" ";
}
html, body {
margin:0;
padding:0;
height:100%;
}
h1,h2{margin:0}
p {
margin:0 0 .5em;
padding:5px 10px 0;
}
body { background:#fff; }
#outer {
min-height:100%;
position:relative;
z-index:1;
clear:both;
}
* html #outer { height:100%; }
#inner {/* holds all content*/
padding:1px 0 70px;/* preserve footer space*/
position:relative;
top:9px;
z-index:2;
zoom:1.0;
margin:0 9px 0;
}
.border1, .border1 span,.border1 b {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
border: 5px double #FF0000;
z-index:0;
}
.border1 span { border:4px groove #00FF00; }
.border1 b{top:104px;bottom:53px;border:3px solid #000;}
#row1, #row2, #footer {
background:red;
height:50px;
color:#fff;
text-align:center;
}
#row2{background:yellow;color:#000}
#footer {
margin:-60px 9px;
position:relative;
z-index:3;
}
</style>
</head>
<body>
<div id="outer">
<div id="inner">
<div id="row1">
<h1>Fixed height element</h1>
</div>
<div id="row2">
<h2>Fixed height element</h2>
</div>
<p>testing</p>
<p>testing</p>
<p><a href="#">testing</a></p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
<p>testing</p>
</div>
<div class="border1"><span><b></b></span></div>
</div>
<div id="footer">Fixed height footer</div>
</body>
</html>