Bootstrap 5 Basic
Bootstrap 5 Flexbox
The navbar in Bootstrap 5 is a responsive and customizable navigation bar component that can be used for site headers, navigation menus, and branding. It adapts seamlessly across devices.
A simple navbar with a brand name.
Try it yourself
Add navigation links using an unordered list (<ul>
).
Try it yourself
Integrate a dropdown menu in the navbar.
Try it yourself
You can use .navbar-light
and .bg-light
or .navbar-dark
and .bg-dark
.
Try it yourself
Add a form with a search bar.
Try it yourself
Make the navbar stick to the top of the viewport.
Try it yourself
Fix the navbar at the top or bottom using .fixed-top
or .fixed-bottom
.
Try it yourself