"Navbar Hover Effects"
Bootstrap 4.1.1 Snippet by hrnsykk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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="menum navbar navbar-light navbar-expand-md justify-content-center fixed-top">
<div class="container">
<div class="navbar-collapse collapse justify-content-between align-items-center w-100" id="collapsingNavbar2">
<ul class="topBotomBordersOut navbar-nav mx-auto text-center">
<li class="nav-item active">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item"><a class="nav-link" href="#">About</a></li>
<li class="nav-item"> <a class="nav-link" href="#">Services</a>
<li class="nav-item"> <a class="nav-link" href="#">Portfolio</a>
<li class="nav-item"> <a class="nav-link" href="#">Blog</a>
<li class="nav-item"> <a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</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
33
34
35
36
37
@import url(http://fonts.googleapis.com/css?family=Raleway);
body{
background-color:#ff666f;
}
a{
color:#fff !important;
}
.nav-item {
font-family: Century Gothic;
margin: 0 auto;
padding: 5em 3em;
text-align: center;
}
.nav-item a {
color: #FFF;
text-decoration: none;
font: 20px Century Gothic;
margin: 0px 10px;
padding: 10px 10px;
position: relative;
z-index: 0;
}
/* Top & Bottom Borders Out */
.topBotomBordersOut a:before, .topBotomBordersOut a:after {
position: absolute;
left: 0px;
width: 100%;
height: 2px;
background: #FFF;
content:"";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: