Navbar
Documentation and examples for Bootstrap powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for our collapse plugin.
How it works
Here is what you need to know before getting started with the navbar:
- 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.
- Ensure accessibility by using a
<nav>
element or, if using a more generic element such as a <div>
, add a role="navigation"
to every navbar to explicitly identify it as a landmark region for users of assistive technologies. - Indicate the current item by using
aria-current="page"
for the current page or aria-current="true"
for the current item in a set.
Supported content
.navbar
with .navbar-expand{-sm|-md|-lg|-xl|-xxl}
for responsive collapsing and color scheme classes.<nav>
element or, if using a more generic element such as a <div>
, add a role="navigation"
to every navbar to explicitly identify it as a landmark region for users of assistive technologies.aria-current="page"
for the current page or aria-current="true"
for the current item in a set. Navbars come with built-in support for a handful of sub-components. Choose from the following as needed:
.navbar-brand
for your company, product, or project name..navbar-nav
for a full-height and lightweight navigation (including support for dropdowns)..navbar-toggler
for use with our collapse plugin and othernavigation toggling behaviors.- Flex and spacing utilities for any form controls and actions.
.navbar-text
for adding vertically centered strings of text..c
ollapse.navbar-collapse for grouping and hiding navbar contents by a parent breakpoint.
Add an optional .navbar-scroll to set a max-height and scroll expanded navbar content.
Brand
.navbar-brand
for your company, product, or project name..navbar-nav
for a full-height and lightweight navigation (including support for dropdowns)..navbar-toggler
for use with our collapse plugin and othernavigation toggling behaviors.- Flex and spacing utilities for any form controls and actions.
.navbar-text
for adding vertically centered strings of text..c
ollapse.navbar-collapse for grouping and hiding navbar contents by a parent breakpoint. Add an optional .navbar-scroll to set a max-height and scroll expanded navbar content.
The .navbar-brand can be applied to most elements, but an anchor works best, as some elements might require utility classes or custom styles.
Text
Add your text within an element with the .navbar-brand
class.
Image
You can replace the text within the .navbar-brand
with an <img>
.
.navbar-brand
with an <img>
.Image and text
You can also make use of some additional utilities to add an image and text at the same time. Note the addition of .d-inline-block
and .align-text-top
on the <img>
.
.d-inline-block
and .align-text-top
on the <img>
.- Progamming is what actually means ?
- What is software development ?
- How we categorized software development in different manner.
C Programming
C Plus Plus
Python
Java Development
Web Designing
Javascript
Mysql
Oracle
C Plus Plus
Python
Java Development
Web Designing
Javascript
Mysql
Oracle
We cover all the programming concepts in various programming languages, this tutorials are very help full for bigener as well as Experience developer, for the ease of understanding we categorized programming in different manner likewise.