Bootstrap 5 Basic
Bootstrap 5 Flexbox
Navs in Bootstrap 5 provide a way to create navigational elements such as menus, tabs, or pill-style navigation.
Use the .nav
class to create a basic navigation.
Use .justify-content-*
classes to align nav items horizontally.
Try it yourself
Add the .flex-column
class to create a vertical navigation.
Try it yourself
Create a tabbed navigation using the .nav-tabs
class.
Try it yourself
Create a pill-style navigation using the .nav-pills
class.
Try it yourself
Use .nav-fill
or .nav-justified
to make the nav items span the full width of the container.
Try it yourself
Combine dropdowns with navigation.
Try it yourself
Combine tabs with content panes using .tab-content
and .tab-pane
.
Try it yourself