Shop Categories

X

Reply To: Offset when using anchor link

Home Forums Agama Pro Offset when using anchor link Reply To: Offset when using anchor link

#9999
kleeberg
Participant

Hello Zex,

thanks. No, I haven’t found a solution. I tried with CSS, but couldn’t find anything. The problem is the height of the navigation bar on top. This distance is exactly the distance the page is deferred. The anchor works basically well and after jumping to the anchor the page starts exactly on the top of the page. But there is the navigation bar covering the upper part of the image or the text.

So it would be necessary to shift the page down for [height of the navbar]px after jumping. What I tried:

https://fellowtuts.com/html-css/offsetting-anchor-hash-tag-links-to-adjust-for-fixed-header/

How to offset anchor tag link using CSS – NO JAVASCRIPT required

but no success. Maybe I’m not using it in the right way.

Thank you and regards,
Martin