html code
-------------------------------------------------
<div id="footer"><span class="footertext">This is the footer</span></div>
css code
--------------------------------------------------
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#808080;
border-top:1px solid #333333;
}
.footertext {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
margin-top:15px;
}
/* IE 6 */
* html #footer {
position:absolute;
top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px');
}
|