"Topnav with tooltip top/bottom"
Bootstrap 4.1.1 Snippet by Aitisam

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 ---------->
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<div class="container-fluid">
<div class="row">
<ul class="custom-navbar">
<li><a href="#" class="active">Tooltip Bottom</a>
</li>
<li><a href="#home" class="titletip">Home<span class="textBottom">Home</span></a>
</li>
<li><a href="#relatives" class="titletip">Relatives<span class="textBottom">Relatives</span></a>
</li>
<li><a href="#notifications" class="titletip">Notifications<span class="textBottom">Notification</span></a>
</li>
<li><a href="#inbox" class="titletip">Inbox<span class="textBottom">Inbox</span></a>
</li>
<li><a href="#settings" class="titletip">Settings<span class="textBottom">Settings</span></a>
</li>
</ul>
</div>
<hr />
<div class="row">
<ul class="custom-navbar">
<li><a href="#" class="active">Tooltip Top</a>
</li>
<li><a href="#home" class="titletip">Home<span class="textTop">Home</span></a>
</li>
<li><a href="#relatives" class="titletip">Relatives<span class="textTop">Relatives</span></a>
</li>
<li><a href="#notifications" class="titletip">Notifications<span class="textTop">Notification</span></a>
</li>
<li><a href="#inbox" class="titletip">Inbox<span class="textTop">Inbox</span></a>
</li>
<li><a href="#settings" class="titletip">Settings<span class="textTop">Settings</span></a>
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
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
overflow-x: hidden;
scroll-behavior: smooth;
text-align: center;
}
.custom-navbar {
position: -webkit-sticky;
position: sticky;
top: -1px;
width: 100%;
height: auto;
padding: 0px 10px;
z-index: 9;
background-color: #FFF;
}
.custom-navbar li{
text-decoration: none;
list-style: none;
padding: 12px 0px;
display:inline-block;
list-style-type: none;
letter-spacing: 1.2px;
}
.custom-navbar li a{
color: #000;
font-size: 17px;
padding: 14px 50px;
border-radius: 4px 4px;
}
.custom-navbar li a:hover{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: