Anchor link to 50px above anchor

There is no easy css way other than offsetting the destination by the needed amount which could be awkward in existing pages. You could add the target before the detination and use absolute positoning with a negative top margin equal to the height of the header.

Here’s a rough example I just knocked up.

You can of course use js to offset the target.

1 Like