Streaming live at 10am (PST)

Adding an offset to an page-anchor

Hey there,

I followed the instruction from this post and now I have unique div ID’s for each of my collection items, what is wonderful! Anchor-linking works great :tada:! But now I have another problem.

My navbar is covering up the anchor-content. Because my navbar is position:fixed
Is it possible to add an offset for the page anchor? I tried to work with negativ margin and positiv padding but it doesn’t work.

The page with the cms-item page-anchors is called Kalender (eng. calendar). Each calendar-event has it´s own div-id unsing an embed with: <div id="xxx"></div>

And the links which points to the page-anchors are on the home page (image below).


Here is my site Read-Only: LINK
(how to share your site Read-Only link)