Panels with nav tabs

Bootstrap snippet. Panels with nav tabs, this snippet was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code.

HTML code

Copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview selection

<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href="">
	<link href="" rel="stylesheet">
	<script src=""></script>
	<script src=""></script>

	<div class="container">
		<div class="page-header">
			<h1>Panels with nav tabs.<span class="pull-right label label-default">:)</span></h1>

		<div class="col-md-12">
			<div class="panel with-nav-tabs panel-primary">
				<div class="panel-heading">
					<ul class="nav nav-tabs">
						<li><a href="#tab1primary" data-toggle="tab">ALL</a></li>
						<li class="active"><a href="#tab2primary" data-toggle="tab">
							<i class="fa fa-camera" aria-hidden="true"></i> Media Picture</a></li>
							<li><a href="#tab3primary" data-toggle="tab">Media File</a></li>
							<li><a href="#tab4primary" data-toggle="tab">Media Audio</a></li>
							<li class="dropdown">
								<a href="#" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
								<ul class="dropdown-menu" role="menu">
									<li><a href="#tab5primary" data-toggle="tab">Isi Terserah</a></li>
									<li><a href="#tab6primary" data-toggle="tab">Isi Terserah</a></li>
					<div class="panel-body">
						<div class="tab-content">
							<div class="tab-pane fade" id="tab1primary">Primary 1</div>
							<div class="tab-pane fade in active" id="tab2primary">
								<div id="mulitplefileuploader">Upload</div>
								<div id="status"></div>
								<div id="startbutton" class="ajax-file-upload-green">Start Upload</div>
							<div class="tab-pane fade" id="tab3primary">Primary 3</div>
							<div class="tab-pane fade" id="tab4primary">Primary 4</div>
							<div class="tab-pane fade" id="tab5primary">Primary 5</div>
							<div class="tab-pane fade" id="tab6primary">Primary 5</div>
			{   var settings = {
				url: "upload.php",
				method: "POST",
				fileName: "myfile",
				multiple: true,

					$("#status").html("<font color='green'>Upload is success</font>");

				onError: function(files,status,errMsg)
					$("#status").html("<font color='red'>Upload is Failed</font>");





CSS code

Copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview selection


.with-nav-tabs.panel-primary .nav-tabs > li > a,
.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {
    color: #fff;
.with-nav-tabs.panel-primary .nav-tabs > .open > a,
.with-nav-tabs.panel-primary .nav-tabs > .open > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > .open > a:focus,
.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {
    color: #fff;
    background-color: #3071a9;
	border-color: transparent;
.with-nav-tabs.panel-primary .nav-tabs > > a,
.with-nav-tabs.panel-primary .nav-tabs > > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > > a:focus {
	color: #428bca;
	background-color: #fff;
	border-color: #428bca;
	border-bottom-color: transparent;
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu {
    background-color: #428bca;
    border-color: #3071a9;
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a {
    color: #fff;   
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a:focus {
    background-color: #3071a9;
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a,
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a:focus {
    background-color: #4a9fe9;

Similar snippets

Bootstrap snippet carbonads ad example

carbonads ad example


Bootstrap snippet bs4 blog post with image hover

bs4 blog post with image hover


Bootstrap snippet bs4 simple social network post

bs4 simple social network post


About this snippet

Creator: Edza Pratama

Bootstrap version: 3.2.0

Created: Sep 5th 2017, 03:07

Views: 196