I need a background image in a div, and i want it to scroll normally with the page, but when you scroll far enough down the bottom of the image is seen, i want the image to stop scrolling, but the page still scrolls. Basically a "fixed" position but only after you've scrolled far enough to the bottom of the image. Is something like this possible with css or something? I took a look at a bunch of css properties like background and stuff but there's nothing there I can seem to find that will help me with what I want to do.
Thanks guys
P.S if you want to see "sort of" an example of what I mean, go to a google code page (like a revision page with comments), as you scroll to the bottom, the div on the left stops scrolling once you get to the bottom but the right side of the screen keep scrolling. That's basically the effect I need but with a background image in a div.
Edit: Sorry it's a table and not a div, not sure if that matters, but heres the code:
Code: Select all
<table width="779" border="0" align="center" cellpadding="10" cellspacing="0" class="wrapper">
Code: Select all
.wrapper {
background-image: url(images/background.jpg);
height: 1118px;
width: 779px;
background-repeat: no-repeat;
background-position:top center;
}