Solution for "how to make navbar fixed top"

.navigation { /* fixed keyword is fine too */ position: sticky; top: 0; z-index: 100; /* z-index works pretty much like a layer: the higher the z-index value, the greater it will allow the navigation tag to stay on top of other tags */ }

stick menu bar in css

nav class="navbar navbar-expand-sm bg-light fixed-top">

fixed-top navbar

Similar codes for "how to make navbar fixed top"


Latest 'CSS' questions

Added before "how to make navbar fixed top"