"Rainbow Nav "
Bootstrap 3.3.0 Snippet by anthony-b

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="navbar-wrapper"> <div class="container-fluid"> <nav class="navbar navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Logo</a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#" class="">Home</a></li> <li class=" dropdown"> <a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Departments <span class="caret"></span></a> <ul class="dropdown-menu"> <li class=" dropdown"> <a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">View Departments</a> </li> <li><a href="#">Add New</a></li> </ul> </li> <li><a href="#">Add New</a></li> <li class=" dropdown"><a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Managers <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">View Managers</a></li> <li><a href="#">Add New</a></li> </ul> </li> <li class=" dropdown"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Staff <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">View Staff</a></li> <li><a href="#">Add New</a></li> <li><a href="#">Bulk Upload</a></li> </ul> </li> <li class=" down"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">HR <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Change Time Entry</a></li> <li><a href="#">Report</a></li> </ul> </li> </ul> <ul class="nav navbar-nav pull-right"> <li class=" dropdown"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Signed in as <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Change Password</a></li> <li><a href="#">My Profile</a></li> </ul> </li> <li class=""><a href="#">Logout</a></li> </ul> </div> </div> </nav> </div> </div>
body{ background: #8999A8; } .navbar, .dropdown-menu{ background:rgba(255,255,255,0.25); border: none; } .nav>li>a, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .dropdown-menu>li>a, .dropdown-menu>li{ border-bottom: 3px solid transparent; } .nav>li>a:focus, .nav>li>a:hover,.nav .open>a, .nav .open>a:focus, .nav .open>a:hover, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover{ border-bottom: 3px solid transparent; background: none; } .navbar a, .dropdown-menu>li>a, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .navbar-toggle{ color: #fff; } .dropdown-menu{ -webkit-box-shadow: none; box-shadow:none; } .nav li:hover:nth-child(8n+1), .nav li.active:nth-child(8n+1){ border-bottom: #C4E17F 3px solid; } .nav li:hover:nth-child(8n+2), .nav li.active:nth-child(8n+2){ border-bottom: #F7FDCA 3px solid; } .nav li:hover:nth-child(8n+3), .nav li.active:nth-child(8n+3){ border-bottom: #FECF71 3px solid; } .nav li:hover:nth-child(8n+4), .nav li.active:nth-child(8n+4){ border-bottom: #F0776C 3px solid; } .nav li:hover:nth-child(8n+5), .nav li.active:nth-child(8n+5){ border-bottom: #DB9DBE 3px solid; } .nav li:hover:nth-child(8n+6), .nav li.active:nth-child(8n+6){ border-bottom: #C49CDE 3px solid; } .nav li:hover:nth-child(8n+7), .nav li.active:nth-child(8n+7){ border-bottom: #669AE1 3px solid; } .nav li:hover:nth-child(8n+8), .nav li.active:nth-child(8n+8){ border-bottom: #62C2E4 3px solid; } .navbar-toggle .icon-bar{ color: #fff; background: #fff; }

Related: See More

Featured Templates


Questions / Comments:

Hello !
Nice navbar, I love it but I can't manage to set "opacity" to "1". Indeed, my page is in a light color so when I scroll the content in the navbar become unreadable. Do you have a solution for this please ?

Farowa () - 1 year ago - Reply 0


Can someone send here the <link>'s and also the <script>'s for this snippet?

Jose555 (-2) - 9 months ago - Reply -2


good, but i can´t use the dropdpwn menu, help me please

vicente montes () - 1 year ago - Reply 0


Hello, i am a "home-schooling" web developer from Ghana. i want to make my webpage into three(3) columns. The side ways columns should remain stuck and the middle column should move(scroll) on scroll . Please help me out.

Realest Nap () - 2 years ago - Reply 0


class="navbar-wrapper"?

Vinícius Cabral E Silva () - 2 years ago - Reply 0


How can I add a submenu inside of a submenu?, like this :

MENU
--- Submenu01
------------SubMenu Menu
------------------- item 01

Angelo () - 2 years ago - Reply 0


Hi, Unfortunately this is not supported at the moment, I have found this Bootsnip that may be of use to you: http://bootsnipp.com/snippe...

Anthony Broadbent () - 2 years ago - Reply 0


Not responsive.

Burak seçer () - 3 years ago - Reply 0


It is responsive, but the button was transparent (due to bootstraps inherited style) I have fixed this now. I need to work on the menu positions in the mobile layout though.

Anthony Broadbent () - 2 years ago - Reply 0


Pink color, it's not a rainbow !! =p

Black Hole () - 3 years ago - Reply 0


Please explain what you mean? The colors dont end at pink. If you use this in your web project then you can add more <li> elements and see more colors.

Anthony Broadbent () - 3 years ago - Reply 0


You can't find the pink color inside a rainbow, your code is clean, sorry for my bad joke.

Black Hole () - 3 years ago - Reply 0


haha i forgive you ;). im thinking of putting infra-red and ultraviolet in... what do ya think?

Anthony Broadbent () - 2 years ago - Reply -1


Looks good, but not in low screen width

skv1991 () - 3 years ago - Reply 0


It is mobile compatible but needs work. If you would like to suggest changes to make it better please do.

Anthony Broadbent () - 3 years ago - Reply 0