I'm tasked to do some accessibility improvements to a website. The first thing I'm trying to do is to add a "skip to main content" link by creating a link with href="#main-content", where "main-content" is the id of the div containing the main content. Adding the link itself is no problem, and there is a suitable id on the container for the main content.
The problem is the main menu. It is positioned at the top of the page. As the user scrolls down the menu stays at the top of the page and on top of the scrolled content, ie the menu has a fixed position with a high z-index.
When the user follows the "skip to main content" link, the page is scrolled so that the main content is positioned at the top of the browser, which is what I expect. The problem is that the first part of it is obscured by the main menu that floats above the page…
Is there a way to solve this without removing the feature with an "always on top" main menu?