Settings

Navs

Documentation and examples for how to use Bootstrap’s included navigation components.
Basic

Navigation available in Bootstrap share general markup and styles, from the base .navclass to the active and disabled states. Swap modifier classes to switch between each style.

The base .navcomponent is built with flexbox and provide a strong foundation for building all types of navigation components. It includes some style overrides (for working with lists), some link padding for larger hit areas, and basic disabled styling.

Horizontal Alignment

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:

Right-aligned with .justify-content-end:

Vertical Alignment

Stack your navigation by changing the flex item direction with the .flex-columnutility. Need to stack them on some viewports but not others? Use the responsive versions (e.g., .flex-sm-column).

Tabs

Takes the basic nav from above and adds the .nav-tabsclass to generate a tabbed interface.

Pills

Take that same HTML, but use .nav-pillsinstead:

Fill and Justify

Force your .nav’s contents to extend the full available width one of two modifier classes. To proportionately fill all available space with your .nav-items, use .nav-fill. Notice that all horizontal space is occupied, but not every nav item has the same width.