Examining the fiddle reveals a straightforward page layout with a fixed menu on the left and scrollable content.
I am looking to align the menu with the content without any blank space at the top that causes the menu to shift upwards while scrolling down. Unfortunately, I'm unsure how to remove this space.
Check out the fiddle below:
<nav>
<a href="#" data-scroll="top">Top</a>
<a href="#" data-scroll="news">News</a>
<a href="#" data-scroll="products">Products</a>
<a href="#" data-scroll="contact">Contact</a>
</nav>
<div class="wrapper">
<section id="top" data-anchor="top">
<h4>TOP</h4>
<p>Lorem ipsum dolor sit amet,</p>
<p>Duis vel augue quis elit ultrices fermentum ut eu risus. Mauris dictum nisl </p>
</section>
<section id="news" data-anchor="news">
<h4>NEWS</h4>
<p>Lorem ipsum dolor sit amet</p>
<p>Duis vel augusequis elit ultrices fermentum ut eu risus. </p>
</section>
<section id="products" data-anchor="products">
<h4>PRODUCTS</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<p>Duis vel augue quis eligultrices fermentum ut eu risus.</p>
</section>
<section id="contact" data-anchor="contact">
<h4>CONTACT</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque feugiat eleifend orci, eget aliquam dolorelementum vel.</p>
<p>Duis vel auremagnaliques elit ultrices fermentum ut eu risus.</p>
</section>