I have an example which does this in my jScrollPane plugin. You should be able to use the logic of getting the y-position regardless of whether or not you are using the plugin:
http://kelvinluck.com/assets/jquery/jScrollPane/scrollTo.html Hope that helps, Kelvin :) fambizzari wrote:
Then, another question i would have is, how do you find the y-position of an element within the div to know how to scroll down to it.