"popular car"
Bootstrap 4.1.1 Snippet by jeevan123456

<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 ----------> <section class="bg-light py-5 "> <div class="container"> <div class="row pb-4 text-center"> <div class="col-md-12"> <h2>Find the Popular Cars in India</h2> <p>Choose the best of the best in here.</p> </div> </div> <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-4"></div> <div class="container"> <div class="row"> <div class="text-center"> <div class="card-group"> <a href="#"> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/22803/Audi-New-SQ7-Right-Front-Three-Quarter-70082.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Maruti Swift</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <button type="button" class="btn btn-outline-danger btn-block">Warning</button> </div> </div> </a> <a href="#"> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/34253/Mitsubishi-New-Outlander-Exterior-126541.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Porsche</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div></a> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/26523/Maruti-Suzuki-Ciaz-Facelift-Exterior-87489.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Swift Dezire</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/22803/Audi-New-SQ7-Right-Front-Three-Quarter-70082.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Maruti Swift</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div> </div> </div> </div> </div> </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> <section class="bg-primary py-5 "> <div class="container"> <div class="row pb-4 text-center"> <div class="col-md-12"> <h2>Find the Popular Cars in India</h2> <p>Choose the best of the best in here.</p> </div> </div> <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-4"></div> <div class="container"> <div class="row"> <div class="text-center"> <div class="card-group"> <a href="#"> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/22803/Audi-New-SQ7-Right-Front-Three-Quarter-70082.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Maruti Swift</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div> </a> <a href="#"> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/34253/Mitsubishi-New-Outlander-Exterior-126541.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Porsche</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div></a> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/26523/Maruti-Suzuki-Ciaz-Facelift-Exterior-87489.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Swift Dezire</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div> <div class="card"> <img class="card-img-top" src="https://imgd.aeplcdn.com/310x174/cw/ec/22803/Audi-New-SQ7-Right-Front-Three-Quarter-70082.jpg?wm=0&q=85" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Maruti Swift</h4> <p class="card-text">Rs. 6.44 Lac to 8.99 Lac.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 3 mins ago</small> </div> </div> </div> </div> </div> </div> </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; }

Related: See More


Questions / Comments: