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?
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).

Experts Exchange Solution brought to you by ConnectWise

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?
Jan LouwerensSoftware EngineerCommented:
How is the scrolling currently being done?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.