Build a Technical Documentation Page Navbar

How do I make my navbar stay on the left of the page and stay there??

Here is a link to my current project: https://codepen.io/bookworm0618/pen/WKRPjW?editors=1100

Oh sorry I kind of figured it out. Right now I am using a float. Is there a better way to do make the navbar stay on the left?