how to create fixed navbar | Sololearn: Learn to code for FREE!


how to create fixed navbar

How to create fixed navbar which mustn't scroll down while it reaches to selected position

6/18/2018 4:35:01 PM


4 Answers

New Answer


you can try follow this example for a sticky navbar (tho i wouldn't recommend using it for anything serious) and the github page edit: there's also stickyBits


W3schools has an example of that, although I'm not sure this is what you mean:


nav{ position:fixed; } but better not to use fixed


use nav tag inside header tag