Like this (IE5+ only):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<http://www.w3.org/TR/xht
<html>
<head>
<title>Static Footer</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
div#content {
width: 100%;
background: #eee;
height: 300px;
border-top: 1px solid black;
border-bottom: 1px solid blue;
padding-top: 30px;
text-align: center;
}
div#footer {
position: absolute;
background: #ffd;
height: 20px;
width: 100%;
top: expression(document.body.s
left: expression(document.body.s
border-top: 1px solid red;
}
</style>
</head>
<body>
<div id="content">
<a href="?" onclick="document.getEleme
</div>
<div id="footer"></div>
</body>
</html>
Cd&
Main Topics
Browse All Topics





by: mraiblePosted on 2003-04-07 at 13:24:37ID: 8286731
I found this is possible with the position: fixed property, but it doesn't work in IE.
amples/007 /menus.htm l
http://www.w3.org/Style/Ex