"Simple white navbar"
Bootstrap 4.1.1 Snippet by test9999

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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-expand-lg"> <ul class="navbar-nav"> <li class="active"> <a href="#" class="nav-link">Home</a> </li> <li class="nav-item"> <a href="#" class="nav-link">Product</a> </li> <li class="nav-item"> <a href="#" class="nav-link">Contact Us</a> </li> </ul> </div> </nav>
.nav-item::after{ content:''; display:block; width:0px; height:4px; background:#ff0000; transition: 0.2s; margin-top:-10px; } .nav-item:hover::after{width:100%;} .nav-link{padding:15px 5px;transition:0.2s;} .navbar-nav .nav-link { color:#000; font-weight:bold; font-size:18px; } .navbar-nav .active > .nav-link{ width:100%; height:51px; border-bottom: .25rem solid transparent; border-bottom-color: #ed4137; }

Related: See More


Questions / Comments: