"Sam W" <sa********@hotmail.com> wrote in message
news:3f***********************@news.dial.pipex.com ...
Hi.
Is there any way using CSS that I would position a copyright notice at the
bottom of the page, no matter how much it is scrolled, as though it were
floating.
The following works in Mozilla Firebird and Opera but not IE6:
<style>
.footer {
position: fixed; bottom: 0; left: 0; right: 0; padding: 1em;
background-color: lightyellow; text-align: center;
}
</style>
....
<body>
<div class="footer">Copyright 2004, Xerxes Xylophones and Mallets.<br>All
rights reserved.</div>
<!--lots of content-->
BUT your document will scroll only as far down as it would without the
footer, which means that the footer will hide the end of your document. So
you'll have to make sure you have excess space at the bottom of your
content. Declaring a sufficiently large margin-bottom for the <body> tag
works, such as:
body { margin-bottom: 6em; }