I'm currently developing a one-page static website with a fixed menu bar positioned at the top. However, I have encountered an issue where clicking on the links in the menu bar causes the page to scroll down to the linked element and cover it.
Below is a snippet of my HTML and CSS code: Check out this fiddle for more details
nav {
text-align:center;
display:inline-block;
width:70%;
position:fixed;
...
}
I am looking for a solution to make the menu bar behave like a standard navigation bar without covering the linked elements. Any help or advice would be greatly appreciated.