Hi,
You could use my absolute overlay method combined with the sticky footer and do it like this:
http://www.pmob.co.uk/temp/sticky-footer-feb2013.htm
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sticky Footer at Bottom</title>
<style type="text/css">
* {/* for demo only*/
margin:0;
padding:0
}
html, body {
height:100%;/* needed to base 100% height on something known*/
text-align:center;
}
/*Opera sticky footer Fix*/
body:before {
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;
}
#outer:after {
clear:both;
display:block;
height:1%;
content:" ";
}
h1, h2, p { padding:0 10px; }
#outer {
width:960px;
margin:auto;
min-height:100%;
margin-top:-90px;/* Footer - this drags the outer up to the top of the monitor */
text-align:left;
clear:both;
position:relative;
z-index:1;
}
* html #outer { height:100% }
#footer {
width:100%;
min-width:960px;
background:#000;
color:#fff;
clear:both;
position:relative;
z-index:2;
}
#footer {/* footer now sits at bottom of window*/
height:90px;
clear:both;
}
.inner {
width:960px;
margin:auto;
position:relative;
z-index:2;
}
#outer .inner {
padding:140px 20px 40px; /* make space*/
width:920px;
}
.mid {
background:#666;
border-bottom:20px solid #ccc;
}
.bg1 {
position:absolute;
top:130px;
margin-left:20px;
bottom:40px;
background:#aaa;
width:920px;
z-index:1;
-webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.9);
-moz-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.9);
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.9);
}
</style>
</head>
<body>
<div id="outer">
<div class="inner">
<h2>Sticky footer ie7+</h2>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
</div>
<!-- bg1 just hold the background and no content -->
<div class="bg1"></div>
</div>
<div id="footer">
<div class="inner">
<p>Footer</p>
</div>
</div>
</body>
</html>
The absolute overlay won't work in IE6.
Bookmarks