Possible Duplicate:
Stopping fixed position scrolling at a certain point?
After I scroll past a certain point I need an element (side bar of links) to not scroll anymore, but yet just stay where it is. I have tried setting this element to fixed after the certain point and this works fine other than it snaps the side bar links down into view in the window in the same position they were before i started scrolling and then fixes them to the window where they do not scroll anymore. I would like to not see this instead once i scroll past the certain point just leave the element where it is on the page, but do not allow it to be scrolled anymore (therefore my side bar of links will be slightly scrolled up off the page, but the bottom links still showing) . triggering the event of setting the element to fixed or not fixed is not my problem that works fine. I just need to position the element AFTER setting it to fixed so that i can put it back up where it started, or find and alternate to setting the position to fixed after I scroll past this certain point.
again desired behavior is that once i scroll down so far on my page, my side bar of links just stay where they are (partly scrolled down, which means the top part is off the page) and then as i continue to scroll down they do not move.
most likely i am thinking i need to reposition the links after the position is being changed to fixed.
ANY HELP? THANKS!