Search results
With Bootstrap, a navigation bar can extend or collapse, depending on the screen size. A standard navigation bar is created with <nav class="navbar navbar-default">. The following example shows how to add a navigation bar to the top of the page:
A navigation bar is a navigation header that is placed at the top of the page: Logo. Link. Basic Navbar. With Bootstrap, a navigation bar can extend or collapse, depending on the screen size.
.navbar { width: 100%; background-color: #555; overflow: auto;} /* Navbar links */.navbar a { float: left; text-align: center; padding: 12px; color: white; text-decoration: none; font-size: 17px;} /* Navbar links on mouse-over */.navbar a:hover { background-color: #000;} /* Current/active navbar link */.active { background-color: #04AA6D;}
Documentation and examples for Bootstrap’s powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for our collapse plugin.
Here are updated examples for left, right and center in the Bootstrap 4 Navbar, and many other alignment scenarios demonstrated here. The flexbox, auto-margins, and ordering utility classes can be used to align Navbar content as needed.
Documentation and examples for Bootstrap’s powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for our collapse plugin.
Documentation and examples for Bootstrap’s powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for our collapse plugin.