"Tab with Icons"
Bootstrap 3.3.0 Snippet by techirsh

1
2
3
4
5
6
7
8
9
10
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<ul role="tablist" class="nav nav-tabs bs-adaptive-tabs" id="myTab">
</div>
</div>
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
.nav.nav-tabs.bs-adaptive-tabs li a label {
font-weight: normal;
}
@media (max-width: 768px) {
.nav.nav-tabs.bs-adaptive-tabs {
position: relative;
height: 45px;
margin-bottom: 50px;
outline: none;
}
.nav.nav-tabs.bs-adaptive-tabs li {
position: static;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(n+6) {
visibility: hidden;
float: right;
clear: right;
z-index: 10;
margin-left: -100%;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(-n+5) {
width: 16.6%; /* 100/(5+1) */
text-align: center;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(6) {
margin-top: 44px;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(5):after {
content: "\f142";
font-family: "FontAwesome";
cursor: pointer;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: