Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Togglable tabs"
Bootstrap 3.3.0 Snippet by
kbhokray
3.3.0
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
804
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300|Roboto" rel="stylesheet"> </head> <body> <div class="container" style="margin-top:50px;"> <div class="tab-content custom-tab-content"> <div class="col-md-8"> <!-- Nav tabs --> <ul class="nav nav-tabs custom-tab col-md-12 nopad" role="tablist"> <li role="presentation" class="active col-md-4 nopad"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" class="nomargin"><i class="glyphicon glyphicon-home icon"></i><span class="link-lable"> Accepted</span></a></li> <li role="presentation" class="col-md-4 nopad"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab" class="nomargin"><i class="glyphicon glyphicon-envelope"></i><span class="link-lable"> Rejected</span></a></li> <li role="presentation" class="col-md-4 nopad"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab" class="nomargin"><i class="glyphicon glyphicon-cog"></i><span class="link-lable"> Pending</span></a></li> </ul> <div class="tab-content"> <div role="tabpanel" class="tab-pane fade in active" id="home"> <div class="container col-md-12"> <div class="row"> <section class="content"> <div class="panel panel-default"> <div class="panel-body"> <div class="table-container"> <table class="table table-filter"> <tbody> <tr data-status="approved"> <td> <div class="media"> <a href="#" class="pull-left"> <img src="http://via.placeholder.com/128x128" class="media-photo"> </a> <div class="media-body"> <span class="media-meta pull-right">December 23, 2017</span> <h4 class="title"> Olympic </h4> <p class="summary">Ut enim ad minim veniam, quis nostrud exercitation...</p> </div> </div> </td> </tr> </tbody> </table> </div> </div> </div> </section> </div> </div> </div> <div role="tabpanel" class="tab-pane fade" id="messages"><h2>Tab 2</h2> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p></div> <div role="tabpanel" class="tab-pane fade" id="settings"><h2>Tab 3</h2> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p></div> </div> </div> </div> </div> </body> </html>
body{ font-family: 'Open Sans', sans-serif; } .nomargin { margin: 0px; } .custom-tab > li > a { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .custom-tab > li { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .custom-tab > li > a:link { border-top: 3px solid #00bfff; border-right: 1px solid #00bfff; border-left: 1px solid #00bfff; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:visited { background-color:#00bfff; border-top: 3px solid #00bfff; border-right: 1px solid #00bfff; border-left: 1px solid #00bfff; color:#FFF; background-color:#00bfff; } .nopad { padding: 0px; } i{ color:#000; } .link-lable{ text-decoration:none; color:#000; } @media screen and (max-width: 767px) { .link-lable{ display:none; } } /* -------------------------------------------------- :: General -------------------------------------------------- */ .content h1 { text-align: center; } .content .content-footer p { color: #6d6d6d; font-size: 12px; text-align: center; } .content .content-footer p a { color: inherit; font-weight: bold; } /* -------------------------------------------------- :: Table Filter -------------------------------------------------- */ .panel { border: 1px solid #ddd; background-color: #fcfcfc; } .table-filter { background-color: #fff; border-bottom: 1px solid #eee; } .table-filter tbody tr:hover { cursor: pointer; background-color: #eee; } .table-filter tbody tr td { vertical-align: middle; border-top-color: #eee; } .table-filter tbody tr.selected td { background-color: #eee; } .table-filter tr td:first-child { width: 38px; } .table-filter tr td:nth-child(2) { width: 35px; } .table-filter .star { color: #ccc; text-align: center; display: block; } .table-filter .star.star-checked { color: #F0AD4E; } .table-filter .star:hover { color: #ccc; } .table-filter .star.star-checked:hover { color: #F0AD4E; } .table-filter .media-photo { width: 35px; } .table-filter .media-body { display: block; /* Had to use this style to force the div to expand (wasn't necessary with my bootstrap version 3.3.6) */ } .table-filter .media-meta { font-size: 11px; color: #999; } .table-filter .media .title { color: #2BBCDE; font-size: 14px; font-weight: bold; line-height: normal; margin: 0; } .table-filter .media .title span { font-size: .8em; } .table-filter .media .title span.approved { color: #5cb85c; } .table-filter .media .title span.pending { color: #f0ad4e; } .table-filter .media .title span.rejected { color: #d9534f; } .table-filter .media .summary { font-size: 14px; }
Related:
See More
Template
Paper Kit Pro
266.6K
83
Tabs style 1
229.6K
49
Bootstrap Tabs with Table
39.7K
8
Tabs
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76