View Single Post
Old 02-22-2013, 01:34 AM   PM User | #3
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
you could try plain ol' javascript

generally speaking what I have found in scrolling from one element to another using their offsets is that you have to scroll back to the top of the container first so that you then scroll the correct amount

I guess in jQuery that would translate to something like this:

Code:
$("#scrolling_div").scrollTop(0);
$("#scrolling_div").scrollTop($("#target_div").offset().top);
xelawho is offline   Reply With Quote