"navbar bootsrtrap"
Bootstrap 4.1.1 Snippet by karimsharf12252

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class=" navbar navbar-expand-lg navbar-success bg-transparent fixed-top d-flex align-items-center " > <div class="container-fluid"> <h1> <a class="navbar-brand px-md-5 fs-5 text-white" href="#">DevFolio</a> </h1> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" > <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav px-md-5 ms-auto mb-2 mb-lg-0 d-flex"> <li class="nav-item px-md-3 fs-5"> <a class="nav-link active text-white" aria-current="page" href="#home" >Home</a > </li> <li class="nav-item px-md-3 fs-5"> <a class="nav-link text-dark" href="#about">About</a> </li> <li class="nav-item px-md-3 fs-5"> <a class="nav-link text-white" href="#services ">SERVICES</a> </li> <li class="nav-item px-md-3 fs-5"> <a class="nav-link text-dark" href="#work">WORK</a> </li> <li class="nav-item px-md-3 fs-5"> <a class="nav-link text-white" href="#blog">BLOG</a> </li> <li class="nav-item px-md-3 fs-5 dropdown"> <a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false" > Dropdown </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> <li><a class="dropdown-item" href="#">Action</a></li> <li><a class="dropdown-item" href="#">Another action</a></li> <li><hr class="dropdown-divider" /></li> <li> <a class="dropdown-item" href="#">Something else here</a> </li> </ul> </li> <li class="nav-item"> <a class="nav-link px-md-3 fs-5 text-white" href="#contact" >CONTACT</a > </li> </ul> </div> </div> </nav>
a.navbar-brand.px-md-5.fs-5 { font-size: 1.75rem !important; } a.nav-link { position: relative; } a.nav-link::before { content: ""; width: 0%; height: 3px; background-color: white; z-index: 9999; transition: all 0.3s ease-out 0s; position: absolute; bottom: 5px; left: 9px; } a.nav-link.active::before { width: 50%; } a.nav-link:hover::before { width: 50%; }

Related: See More


Questions / Comments: