Page not scrolling to top of page when clicking on JS link.

Hey Experts,

I'm trying to solve a minor problem on our websites locations map  

If you are on the location page, and scroll down, and click on any of the locations, the page will scroll up to the map, and show an infobox of the location. The only problem is that does not scroll all the way to the top, thus cutting off the top of the infobox.  I'm not sure where to start with this, is it a css problem, JS problem?

Could somebody help me fix this, please?

Thank you
Jon ImmsWeb DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
It looks to me like the scrolling isn't taking the static header size into account. it is scrolling the location to the top of the page, but it's ending up under the static header. You'll need to scroll just a bit lower (based on the height of the static header on the page).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jon ImmsWeb DeveloperAuthor Commented:
any idea on how to do that?
0
Jan LouwerensSoftware EngineerCommented:
How is the scrolling currently being done?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.