"Button with image Bootsrap 4.1"
Bootstrap 4.1.1 Snippet by tieusuquay79

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="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>your title</title>
</head>
<body>
<div class="container bg-line">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" style="margin-bottom:5px" data-target="#navbarSupportedContent1" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
Filter
</button><br>
<div class="collapse justify-content-center navbar-collapse" id="navbarSupportedContent1">
<nav>
<a href="#" class="btn a-link cm" ><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Semua Kartu</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px; margin-left:-5px; margin-right:-5px"><b>Bonus</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Dinning</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Cashback</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Reward</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn1.iconfinder.com/data/icons/hex-ico/128/flight.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Travel</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>Premium</b></p></a>
<a href="#" class="btn a-link cm"><img src="https://cdn2.iconfinder.com/data/icons/ballicons-2-free/100/luggage-256.png" alt="" style="width:90%"><p style="font-size:12.5px;margin-left:-5px; margin-right:-5px"><b>BBM</b></p></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
.bg-line{
margin-top:10px;
}
.cm{
margin-left: 10px;
margin-bottom: 5px;
border-bottom: 5px solid #CCCCCC;
border-radius: 5px;
background-color: #ECF0F1;
}
.cm:hover{
border-bottom: 5px solid #3498DB;
}
.cm-active{
background-color:#3498DB;
border-bottom: 5px solid #E74C3C;
}
.a-link{
height:100px;
width:100px;
border-radius:0px
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: