Bootstrap Navbar
A Bootstrap Navbar is a navigation header that is placed at the top of the page. It can extend or collapse, depending on the screen size. A standard navigation bar is created with <nav class="navbar navbar-default">
. Check this 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.
Navbar Transparent
<!-- Navbar Transparent -->
<nav
class= "navbar navbar-expand-lg top-0 z-index-3 w-100 shadow-none my-3 navbar-transparent " >
<div class= "container" >
<a class= "navbar-brand text-white " href= "" rel= "tooltip" title= "Designed and Coded by Creative Tim" data-placement= "bottom" target= "_blank" >
Corporate UI Dashboard
</a>
<button class= "navbar-toggler" type= "button" data-toggle= "collapse" data-target= "#navigation" aria-controls= "navigation" aria-expanded= "false" aria-label= "Toggle navigation" >
<span class= "navbar-toggler-icon" ></span>
</button>
<div class= "collapse navbar-collapse" id= "navigation" >
<ul class= "navbar-nav navbar-nav-hover ms-auto" >
<div class= "row" >
<div class= "col-auto m-auto" >
<a class= "text-white cursor-pointer" >
<svg width= "16" height= "16" xmlns= "http://www.w3.org/2000/svg" class= "fixed-plugin-button-nav cursor-pointer" viewBox= "0 0 24 24" fill= "currentColor" >
<path fill-rule= "evenodd" d= "M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 00-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 00-2.282.819l-.922 1.597a1.875 1.875 0 00.432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 000 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 00-.432 2.385l.922 1.597a1.875 1.875 0 002.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 002.28-.819l.923-1.597a1.875 1.875 0 00-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 000-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 00-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 00-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 00-1.85-1.567h-1.843zM12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5z" clip-rule= "evenodd" ></path>
</svg>
</a>
</div>
<div class= "col-auto m-auto" >
<div class= "dropdown" >
<a class= "text-white cursor-pointer" type= "button" id= "dropdownMenuButton" data-bs-toggle= "dropdown" aria-expanded= "false" >
<svg height= "16" width= "16" xmlns= "http://www.w3.org/2000/svg" viewBox= "0 0 24 24" fill= "currentColor" class= "cursor-pointers" >
<path fill-rule= "evenodd" d= "M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z" clip-rule= "evenodd" ></path>
</svg>
</a>
<ul class= "dropdown-menu dropdown-menu-right px-2 py-3 ms-n4" aria-labelledby= "dropdownMenuButton" >
...
</ul>
</div>
</div>
<div class= "col-auto" >
<div class= "bg-white border-radius-lg d-flex me-2" >
<input type= "text" class= "form-control border-0 ps-3" placeholder= "Type here..." >
<button class= "btn btn-dark me-1 my-1" > Search</button>
</div>
</div>
</div>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
Examples
Navbar Dark
<!-- Navbar Dark -->
<nav
class= "navbar navbar-expand-lg navbar-dark bg-gradient-dark border-radius-md z-index-3 py-3" >
<div class= "container" >
<a class= "navbar-brand text-white" href= "" rel= "tooltip" title= "Designed and Coded by Creative Tim" data-placement= "bottom" target= "_blank" >
Corporate UI Dashboard
</a>
<button class= "navbar-toggler" type= "button" data-toggle= "collapse" data-target= "#navigation" aria-controls= "navigation" aria-expanded= "false" aria-label= "Toggle navigation" >
<span class= "navbar-toggler-icon" ></span>
</button>
<div class= "collapse navbar-collapse" id= "navigation" >
<ul class= "navbar-nav navbar-nav-hover ms-auto" >
<div class= "row" >
<div class= "col-auto m-auto" >
<a class= "text-white cursor-pointer" >
<svg width= "16" height= "16" xmlns= "http://www.w3.org/2000/svg" class= "fixed-plugin-button-nav cursor-pointer" viewBox= "0 0 24 24" fill= "currentColor" >
<path fill-rule= "evenodd" d= "M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 00-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 00-2.282.819l-.922 1.597a1.875 1.875 0 00.432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 000 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 00-.432 2.385l.922 1.597a1.875 1.875 0 002.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 002.28-.819l.923-1.597a1.875 1.875 0 00-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 000-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 00-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 00-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 00-1.85-1.567h-1.843zM12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5z" clip-rule= "evenodd" ></path>
</svg>
</a>
</div>
<div class= "col-auto m-auto" >
<div class= "dropdown" >
<a class= "text-white cursor-pointer" type= "button" id= "dropdownMenuButton" data-bs-toggle= "dropdown" aria-expanded= "false" >
<svg height= "16" width= "16" xmlns= "http://www.w3.org/2000/svg" viewBox= "0 0 24 24" fill= "currentColor" class= "cursor-pointers" >
<path fill-rule= "evenodd" d= "M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z" clip-rule= "evenodd" ></path>
</svg>
</a>
<ul class= "dropdown-menu dropdown-menu-right px-2 py-3 ms-n4" aria-labelledby= "dropdownMenuButton" >
...
</ul>
</div>
</div>
<div class= "col-auto" >
<div class= "bg-white border-radius-lg d-flex me-2" >
<input type= "text" class= "form-control border-0 ps-3" placeholder= "Type here..." >
<button class= "btn btn-dark my-1 me-1" > Search</button>
</div>
</div>
</div>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
Navbar Light
<!-- Navbar Light -->
<nav
class= "navbar navbar-expand-lg navbar-light border-radius-md bg-white z-index-3 py-3" >
<div class= "container" >
<a class= "navbar-brand" href= "" rel= "tooltip" title= "Designed and Coded by Creative Tim" data-placement= "bottom" target= "_blank" >
Corporate UI Dashboard
</a>
<button class= "navbar-toggler" type= "button" data-toggle= "collapse" data-target= "#navigation" aria-controls= "navigation" aria-expanded= "false" aria-label= "Toggle navigation" >
<span class= "navbar-toggler-icon" ></span>
</button>
<div class= "collapse navbar-collapse" id= "navigation" >
<ul class= "navbar-nav navbar-nav-hover ms-auto" >
<div class= "row" >
<div class= "col-auto m-auto" >
<a class= "cursor-pointer" >
<svg width= "16" height= "16" xmlns= "http://www.w3.org/2000/svg" class= "fixed-plugin-button-nav cursor-pointer" viewBox= "0 0 24 24" fill= "currentColor" >
<path fill-rule= "evenodd" d= "M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 00-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 00-2.282.819l-.922 1.597a1.875 1.875 0 00.432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 000 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 00-.432 2.385l.922 1.597a1.875 1.875 0 002.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 002.28-.819l.923-1.597a1.875 1.875 0 00-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 000-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 00-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 00-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 00-1.85-1.567h-1.843zM12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5z" clip-rule= "evenodd" ></path>
</svg>
</a>
</div>
<div class= "col-auto m-auto" >
<div class= "dropdown" >
<a class= "cursor-pointer" type= "button" id= "dropdownMenuButton" data-bs-toggle= "dropdown" aria-expanded= "false" >
<svg height= "16" width= "16" xmlns= "http://www.w3.org/2000/svg" viewBox= "0 0 24 24" fill= "currentColor" class= "cursor-pointers" >
<path fill-rule= "evenodd" d= "M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z" clip-rule= "evenodd" ></path>
</svg>
</a>
<ul class= "dropdown-menu dropdown-menu-right px-2 py-3 ms-n4" aria-labelledby= "dropdownMenuButton" >
...
</ul>
</div>
</div>
<div class= "col-auto" >
<div class= "d-flex align-items-center me-2" >
<input type= "text" class= "form-control ps-3" placeholder= "Type here..." >
<button class= "btn btn-dark ms-1 mb-0" > Search</button>
</div>
</div>
</div>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->