Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states.
Navbars require a wrapping .navbar with .navbar-expand{-sm|-md|-lg|-xl|-xxl} for responsive collapsing and color scheme classes.
Navbars and their contents are fluid by default. Change the container to limit their horizontal width in different ways.
Use our spacing and flex utility classes for controlling spacing and alignment within navbars.
Navbars are responsive by default, but you can easily modify them to change that. Responsive behavior depends on our Collapse JavaScript plugin.
Sample Code
Output
Bootstrap Navs and Tabs Example 1 : Centered with .justify-content-center
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.
Sample Code
Output
Bootstrap Navs and Tabs Example 2 : Right-aligned with .justify-content-end
Sample Code
Output
Bootstrap Navs and Tabs Vertical
Navigation by changing the flex item direction with the .flex-column utility. Vertical navigation is possible without <ul>.
Sample Code
Output
Bootstrap Tabs
Bootstrap tabs are a user interface element provided by the Bootstrap framework for creating a set of tabs that allow users to quickly switch between different content panels on a webpage.
Tabs are a popular design pattern for organizing and presenting related information in a compact and intuitive way.
Adds the .nav-tabs class to generate a tabbed interface.
Sample Code
Output
Bootstrap Pills
Bootstrap Pills are similar to Tabs, but they are displayed horizontally and look like pills or capsules. You can use Bootstrap Pills to create a navigation menu or to display different types of content.
Here you can take that same HTML code, but use .nav-pills instead:
Sample Code
Output
Bootstrap Fill and justify Example 1
Force your .nav’s contents to extend the full available width one of two modifier classes. To 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.
Sample Code
Output
Bootstrap Fill and justify Example 2
For equal-width elements, use .nav-justified. All horizontal space will be occupied by nav links, but unlike the .nav-fill above, every nav item will be the same width.
Sample Code
Output
Bootstrap Working with flex utilities
If you need responsive nav variations, consider using a series of Flexbox utilities.
Sample Code
Output
Bootstrap Tabs with Dropdowns
Bootstrap Tabs with Dropdowns is a user interface element that combines two popular Bootstrap components: tabs and dropdown menus. It allows you to add dropdown menus to your tabs, giving you more flexibility in organizing and presenting your content.
With Bootstrap Tabs with Dropdowns, you can group related content under tabs and further organize that content by using dropdown menus. For example, you could use tabs to group different categories of products on an e-commerce site and use dropdown menus to display specific product options or variations within each category.
To create Tabs with Dropdowns, you can use the nav-tabs and nav-item classes to create the tab navigation, and the dropdown and dropdown-menu classes to create the dropdown menus.
Sample Code
Output
Bootstrap Pills with Dropdowns
Bootstrap Pills with Dropdowns is a user interface element that combines two popular Bootstrap components: pills and dropdown menus. It allows you to add dropdown menus to your pills, giving you more flexibility in organizing and presenting your content.
With Bootstrap Pills with Dropdowns, you can group related content under pills and further organize that content by using dropdown menus. For example, you could use pills to group different categories of blog posts on a website and use dropdown menus to display specific posts within each category.
To create Pills with Dropdowns, you can use the nav-pills and nav-item classes to create the pill navigation, and the dropdown and dropdown-menu classes to create the dropdown menus.
Related Searches to Bootstrap Navs and Tabs - Bootstrap 5 Tabs and Pills Nav Component
bootstrap tabs bootstrap 4 tabs tab content bootstrap bootstrap nav tabs example bootstrap 5 tabs bootstrap 5 tabs with content nav tabs bootstrap 4 bootstrap 5 tabs example tab-content bootstrap bootstrap nav-tabs example bootstrap nav tabs not working bootstrap nav tabs bootstrap nav tabs responsive bootstrap nav tabs bootstrap nav tabs change active color bootstrap nav tabs example codepen bootstrap nav tabs styling bootstrap nav tabs vertical