Posts: 876
Name: Matt Pealing
Location: England, north west
|
I am trying to make a form scroll down the page as the user scrolls. See here:
http://bit.ly/9qIcSq
It seems to work fine just by setting:
Code:
#sidebar form {
width: 190px;
padding: 12px;
background: url('../image/sidebar-form.png') no-repeat;
margin-left: 15px;
overflow: hidden;
position: fixed;
top: 145px;
}
But when it gets to the bottom of the page it overlaps the footer. Is there any way using CSS that I can get it to stop above the footer when it gets to that point?
Or would I need to use JavaScript?
Thanks.
|