I attempted to create a simplified version of the issue I am facing. Basically, I am working on a header with navigation that stays at the top of the page while scrolling.
The problem arises when clicking on a section in the navigation. The screen scrolls to the selected section but the navigation obscures half of the content at the top, requiring the user to scroll up slightly to see everything clearly. I have used lorem ipsum as a placeholder for the content.
How can I adjust the browser position so that when a user clicks on a navigation button, the window is positioned correctly?