Documentation and examples for how to use Bootstrap’s included navigation components. document
For light & Dark backgrounds use .nav-light, .nav-dark modifier classes. For alignments and vertical navigation please check official documentation.
Use the .nav-light class with nav.
Use the .nav-dark class with nav.
Change the horizontal alignment of your nav with flexbox utilities. By default, navs are left-aligned, but you can easily change them to center or right aligned. Centered with .justify-content-center,.justify-content-end
Use .nav-icon class with nav.
Use .nav-icon .nav-icon-top class with nav.
Use .nav-pills class with nav and .nav-pills-rounded,.nav-pills-square for shape of pills.
Use .nav-icon class with .nav-pills.
Use .nav-icon .nav-icon-top class with nav.
Use .nav-pills-soft class with nav.
Use .nav-line class with nav.
Stack your navigation by changing the flex item direction with the .flex-column utility or add .nav-vertical class. Need to stack them on some viewports but not others? Use the responsive versions (e.g., .flex-sm-column).
Add .nav-vertical class with .nav-pills.
Add .nav-vertical class with .nav-line.
Add .nav-vertical class with .nav-pills.