Scrolling to blocs when there is a sticky menu

I have no problem scrolling to blocs on a page using anchors (ie bloc ids). It works fine.

Unfortunately, if there’s a sticky nav menu at the top, part of that bloc is obscured by the menu.

I don’t know of a good solution. Does anyone?

Paul

There is a poor solution - add a sacrificial bloc that has the same height as the navigation - but that would ruin the look of the page or I’d be adding artificial bloc ids to try and compensate.

A compromise it to reference a bloc above the one that the user intended to target.

1 Like