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

<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 ----------> <!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> <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>First Card</b></p></a> </nav> </div> </nav> </div> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> </body> </html>
.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 }

Related: See More


Questions / Comments: