"navbar bootsrtrap"
Bootstrap 4.1.1 Snippet by karimsharf12252

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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%;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: