"BS4 Tabs"
Bootstrap 4.0.0 Snippet by tieusuquay79

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.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 ----------> <section class=" "> <div class="container"> <div class="row"> <div class="col-md-12 text-center "> <nav class="nav-justified "> <div class="nav nav-tabs " id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="pop1-tab" data-toggle="tab" href="#pop1" role="tab" aria-controls="pop1" aria-selected="true">Popular Cars</a> <a class="nav-item nav-link" id="pop2-tab" data-toggle="tab" href="#pop2" role="tab" aria-controls="pop2" aria-selected="false">Upcoming</a> <a class="nav-item nav-link" id="pop3-tab" data-toggle="tab" href="#pop3" role="tab" aria-controls="pop3" aria-selected="false">Newly Launched</a> </div> </nav> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="pop1" role="tabpanel" aria-labelledby="pop1-tab"> <div class="pt-3"></div> <p>1. There's another way to do this for layouts that doesn't have to put the navbar inside the container, and which doesn't require any CSS or Bootstrap overrides. Simply place a div with the Bootstrap container class around the navbar. This will center the links inside the navbar:</p> </div> <div class="tab-pane fade" id="pop2" role="tabpanel" aria-labelledby="pop2-tab"> <div class="pt-3"></div> <p>2. There's another way to do this for layouts that doesn't have to put the navbar inside the container, and which doesn't require any CSS or Bootstrap overrides. Simply place a div with the Bootstrap container class around the navbar. This will center the links inside the navbar: </div> <div class="tab-pane fade" id="pop3" role="tabpanel" aria-labelledby="pop3-tab"> <div class="pt-3"></div> <p>3. There's another way to do this for layouts that doesn't have to put the navbar inside the container, and which doesn't require any CSS or Bootstrap overrides. Simply place a div with the Bootstrap container class around the navbar. This will center the links inside the navbar: </div> </div> </div> </div> </div> </section>
.nav-tabs .nav-link.active { font-weight:bold; background-color: transparent; border-bottom:3px solid #dd0000; border-right: none; border-left: none; border-top: none; }
nav-justified

Related: See More


Questions / Comments: