"navbar with active tag"
Bootstrap 3.0.0 Snippet by ashutosh123

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ----------> <nav class="navbar navbar-color-r"> <div class="container-fluid"> <div class="navbar-header"> <button class="btn navbar-toggle" data-toggle="collapse" data-target="#my"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">welcome</a> </div> <div class="collapse navbar-collapse" id="my"> <ul class="nav navbar-nav navbar-right ul2"> <li class="c1"><a class="active" href="#">home</a></li> <li><a href="#">home</a></li> <li><a href="#">home</a></li> <li><a href="#">home</a></li> <li><a href="#">home</a></li> </ul> </div> </div> </nav>
.navbar-color-r{ background-color: red; } .navbar-color-r a{ color: white; } .c1 .active{ color:black; background-color: white; border-bottom:3px solid green; } .ul2 li a{ border-bottom:3px solid red; } .ul2 li a:hover, .ul2 li a:active, .ul2 li a:focus{ background:white; color:black; border-bottom:3px solid green; } .icon-bar{ background-color: white; } .btn{ border:2px solid white; }

Related: See More


Questions / Comments: