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.
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.
Scroll to the anchor (by setting window.location.hash
, maybe) then do window.scrollBy(0, -20)
, for example.