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
"tab center align"
Bootstrap 3.3.0 Snippet by
SANTANU CHOWDHURY
3.3.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.0K
 
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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li> <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li> <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li> <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li> </ul> </div> <div class="col-md-12"> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="home">Home</div> <div role="tabpanel" class="tab-pane" id="profile">Profile</div> <div role="tabpanel" class="tab-pane" id="messages">Message</div> <div role="tabpanel" class="tab-pane" id="settings">settings</div> </div> </div> </div> </div>
.nav-tabs { border-bottom: none; text-align: center; margin: 15px auto; text-transform: uppercase; font-weight: 500; } .nav-tabs li { display: inline-block; float: initial; min-width: 190px; margin-bottom: 15px; } .nav-tabs li a { background: #1e79f2; color: #fff; margin-left: 2px; } .nav-tabs li a:hover { background-color: #faca21 !important; border: 1px solid #faca21 !important; border-bottom-color: #faca21 !important; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover { color: #fff; cursor: default; background-color: #faca21 !important; border: 1px solid #faca21 !important; border-bottom-color: #faca21 !important; } .nav-tabs > li > a { border-radius: 23px; }
Related:
See More
Template
Material Dashboard Pro React
98.8K
16
Bootstrap 4 Right align Navbar
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76