Fixed vertical navbar

Fixed vertical navbar
0

#1

Hello everyone !

I’m working on this page with codepen

I’m trying to have the navbar on the left with a position fixed, do you have any idea of how could I do ?
I tried this method https://bootsnipp.com/snippets/5lapE
and this one https://www.w3schools.com/bootstrap/bootstrap_affix.asp
but I can’t make it…

The container of this navbar starts on line 68.

If one of you have any idea of how I could do, please let me know !!
Thanks a lot :slight_smile:


#2

I’m not sure why the first method didn’t work for you since I can’t see what you attempted, but make sure you’re using the navbar class and not just nav. Follow the example closely. Try it again, and if you have trouble, come back here to post the code you tried - don’t delete it if it doesn’t work!