Create Sticky Navbar

I put a 'nav' into a container. I would like to make that whole container with the navigation items become "sticky" so it stays at the top when users scroll down. How do I accomplish this? Thank you.

in bootstrap it's called fixed navbar. if you need a stuck div see

Ah, thank you very much for the documentation. I see how it works now.