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. https://getbootstrap.com/docs/4.1/components/navbar/ if you need a stuck div see https://getbootstrap.com/docs/4.1/utilities/position/

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