I'm trying to do this: Get a specific list item scroll to it. This I do with this which works perfectly:
scrollTop:$('#ranking li:#test').offset().top}, 100);
Now, this makes the li show at the top, but actually I want to show it exactly at the middle of the screen. Lets say that the screenheight is 480px (iPhone) I would like to add pixels to the offset... Can this be done and if yes... How?
Thanks in advance