A navigation bar is a navigation header that is placed at the top of the page.
A navigation bar is a navigation header that is placed at the top of the page.
Use the .justify-content-center class to center the navigation bar.
Use any of the .bg-color classes to add a background color to the navbar.
Add a white text color to all links in the navbar with the .navbar-dark class, or use the .navbar-light class to add a black text color.
The .navbar-brand class is used to highlight the brand/logo/project name of your page.
Use the .navbar-text class to vertical align any elements inside the navbar that are not links (ensures proper padding).
Only when the button is clicked will the navigation bar be displayed.
Sometimes you want to use the collapse plugin to trigger a container element for content that structurally sits outside of the navbar.
This example adds a dropdown menu in the navbar.
You can also include forms inside the navigation bar.
Transform your expanding and collapsing navbar into an offcanvas drawer with the offcanvas plugin.