Anchor tag vertical alignment displaced by sticky headers

I’m looking for the recommeded method to adjust to alow an anchor tag, such as on this page: https://www.acumed.net/procedures/#cmfneuro to scroll to the correct position when used. Ever since inplementing “sticky headers”, every anchor on any page seems to scroll past the desired anchor tag position. Is there a best-practices solution for this issue, either by using CSS, JS, or some combination of the two?

Hi David,

Thanks for reaching out.
It is due to the offset calculation while using the Sticky Bar and the One Page navigation. I would suggest you go through the following thread, which may help you.

Thanks

1 Like