"Simple white navbar"
Bootstrap 4.1.1 Snippet by dna27

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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">
<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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.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;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Error on line 21

Tcip () - 2 years ago - Reply 0


Sorry for this post. The page said it coulnt post my comment so i wrote a new one....

Tcip () - 2 years ago - Reply 0


Why is there a </div> on line 21? No div is present in the document.

Tcip () - 2 years ago - Reply 0


sfsdf

mksonwal () - 3 years ago - Reply 0


sfsdf

mksonwal () - 3 years ago - Reply 0


sfsdf

mksonwal () - 3 years ago - Reply 0