How do you have a separate scroll bar for the navigation bar and a separate scroll bar for the main page? You’ll see what I mean in the page down below.
In the case of the page, you linked to it is done by giving the nav/ul a fixed height and then giving the ul overflow-y: auto; then you will get scroll bars showing up (to handle the overflow). The other scroll bar on the main page part is added automatically when the content of the page is more/taller than the window height.
Example of text overflow and using overflow: auto
<div class="container">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Rerum ex recusandae ipsam deserunt eos libero expedita possimus odit aliquid in numquam aut modi consectetur aspernatur, quas, dicta, beatae porro aliquam omnis! Totam eligendi esse dolor dolore nostrum accusantium odit voluptate placeat culpa? Necessitatibus voluptatibus deserunt quaerat consequatur a! Totam non quod facilis porro. Laboriosam distinctio voluptates qui fuga voluptatibus labore in veritatis vero eveniet porro doloremque, aliquid hic placeat, numquam vel provident saepe modi libero minima, aut ex ipsum dolores.</p>
</div>
body {
height: 1800px;
}
p {
font-size: 28px;
}
.container {
max-height: 200px;
background: #8bc34a;
overflow-y: auto;
}
In your #navbar id. Try changing the position to fixed, because you’re wanting your content to stay in the same spot. There are many different position values you can choose from, but this one may be your best bet.