"Bootstrap Tabs with Table"
Bootstrap 4.1.1 Snippet by Mohan.P

<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 ----------> <section id="tabs" class="project-tab"> <div class="container"> <div class="row"> <div class="col-md-12"> <nav> <div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Project Tab 1</a> <a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Project Tab 2</a> <a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Project Tab 3</a> </div> </nav> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab"> <table class="table" cellspacing="0"> <thead> <tr> <th>Project Name</th> <th>Employer</th> <th>Awards</th> </tr> </thead> <tbody> <tr> <td><a href="#">Work 1</a></td> <td>Doe</td> <td>john@example.com</td> </tr> <tr> <td><a href="#">Work 2</a></td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td><a href="#">Work 3</a></td> <td>Dooley</td> <td>july@example.com</td> </tr> </tbody> </table> </div> <div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab"> <table class="table" cellspacing="0"> <thead> <tr> <th>Project Name</th> <th>Employer</th> <th>Time</th> </tr> </thead> <tbody> <tr> <td><a href="#">Work 1</a></td> <td>Doe</td> <td>john@example.com</td> </tr> <tr> <td><a href="#">Work 2</a></td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td><a href="#">Work 3</a></td> <td>Dooley</td> <td>july@example.com</td> </tr> </tbody> </table> </div> <div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab"> <table class="table" cellspacing="0"> <thead> <tr> <th>Contest Name</th> <th>Date</th> <th>Award Position</th> </tr> </thead> <tbody> <tr> <td><a href="#">Work 1</a></td> <td>Doe</td> <td>john@example.com</td> </tr> <tr> <td><a href="#">Work 2</a></td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td><a href="#">Work 3</a></td> <td>Dooley</td> <td>july@example.com</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </section>
.project-tab { padding: 10%; margin-top: -8%; } .project-tab #tabs{ background: #007b5e; color: #eee; } .project-tab #tabs h6.section-title{ color: #eee; } .project-tab #tabs .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { color: #0062cc; background-color: transparent; border-color: transparent transparent #f3f3f3; border-bottom: 3px solid !important; font-size: 16px; font-weight: bold; } .project-tab .nav-link { border: 1px solid transparent; border-top-left-radius: .25rem; border-top-right-radius: .25rem; color: #0062cc; font-size: 16px; font-weight: 600; } .project-tab .nav-link:hover { border: none; } .project-tab thead{ background: #f3f3f3; color: #333; } .project-tab a{ text-decoration: none; color: #333; font-weight: 600; }

Related: See More


Questions / Comments: