I’d like to scroll to a position that is for ex 20px above an anchor. What is the best solution for this?
EDIT: I’m going to use scrollTo with jquery. Couldn’t figure out window.location.hash.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Scroll to the anchor (by setting
window.location.hash, maybe) then dowindow.scrollBy(0, -20), for example.