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
"Custom Tabs"
Bootstrap 4.1.1 Snippet by
Andwar22
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.2K
 
0 Fav
Post to Facebook
Tweet this
<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 ----------> <div class="bg-dark p-3"> <div class="m-5"> <div class="container"> <h1 class="text-center text-white mb-5">Custom Tab Bootstrap 4</h1> <nav> <div class="nav nav-tabs nav-fill thead-skor" id="myTab" role="tablist"> <a class="nav-item nav-link active" id="skor-tab" data-toggle="tab" href="#skor" role="tab" aria-controls="skor" aria-selected="true">Kartu Skor Poedji Rochyati</a> <a class="nav-item nav-link" id="preeklampsia-tab" data-toggle="tab" href="#preeklampsia" role="tab" aria-controls="preeklampsia" aria-selected="false">Skrining Preeklampsia</a> </div> </nav> <div class="tab-content tab-skor" id="myTabContent"> <div class="tab-pane fade show active" id="skor" role="tabpanel" aria-labelledby="skor-tab"> <div class="p-3"> <div class="p-5 bg-white text-center"> <h2>AKU TAB 1</h2> </div> </div> </div> <div class="tab-pane fade" id="preeklampsia" role="tabpanel" aria-labelledby="preeklampsia-tab"> <div class="p-3"> <div class="p-5 bg-white text-center"> <h2>AKU TAB 2</h2> </div> </div> </div> </div> </div> </div> </div>
.tab-skor { background-color: #ECECEC; padding-bottom: 0.25rem; } .nav-tabs a { color: #000; } nav > .thead-skor a.nav-item { color: yellow; } nav > .thead-skor a.nav-item.active { color: #16AB50; background: #ECECEC; border-bottom: 2px solid #ECECEC; font-weight: 700; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76