Could someone could point me in the correct direction for how to make the nav-bar float on the left side? Currently the Nav-bar is always present on the left side, but when I scroll down it doesn’t stay in it’s current position. How can I make sure that the Nav-Bar is the full height of the screen and that any overflow causes there to be a scroll bar?
I also want to know how I can do the same thing when the screen is collapsed and the media query parameters kick in. Right now it just shows everything on top of my content page so it’s rather long.
I’ll explain what the logic behind it is:
I made sure the navbar id had a positioning of fixed because fixed makes sure the content within the div stays in the same place even if the page is scrolled.
However, since you put the navbar inside of the container, this caused for some shift in the container. This had to be fixed with a padding-left. The rest is pretty self-explanatory. Play around with it if you’d like.
I advise you looking more into CSS positioning and what the positioning does to classes containing ids and vice versa!