Search results
A navigation bar is a navigation header that is placed at the top of the page: Logo. Link. Disabled. 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;}
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:
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, collapse plugin, and more.
This example is a quick exercise to illustrate how the navbar and its contents work. Some navbars extend the width of the viewport, others are confined within a .container. For positioning of navbars, checkout the top and fixed top examples.