I am struggling to maintain the active tab in my left navigation tab. The issue arises when I load the page with the first tab active, and then click on another tab - the new tab becomes active, but the first tab remains active as well. I would like only the clicked tab to be active.
Here is my HTML:
<div id="container">
<div class="row" style="margin-left: 0px;">
<div class="col-xs-2">
<h4><i class="glyphicon glyphicon-briefcase"></i>
<small><b>Partner</b></small>
</h4>
<ul class="nav nav-tabs tabs-left">
<li class="active"><a href="#partnerInfo" data-toggle="tab">Partner Core Info</a></li>
<li><a href="#partnerUsers" data-toggle="tab">Partner Users</a></li>
<li><a href="#partnerProperties" data-toggle="tab">Partner Properties</a></li>
<li><a href="#partnerSalesRep" data-toggle="tab">Partner Sales Reps</a></li>
</ul>
<h4><i class="glyphicon glyphicon-user"></i>
<small><b>Customer</b></small>
</h4>
<ul class="nav nav-tabs tabs-left">
<li><a href="#customerUsers" data-toggle="tab">Customer Users</a></li>
<li><a href="#customerProperties" data-toggle="tab">Customer Properties</a></li>
<li><a href="#customerBilling" data-toggle="tab">Customers Biling</a></li>
</ul>
</div>
<div class="col-xs-10">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="partnerInfo">
Messages Tab.
</div>
<div class="tab-pane" id="partnerUsers">
Messages Tab.
</div>
<div class="tab-pane" id="partnerProperties">Settings Tab.</div>
<div class="tab-pane" id="partnerSalesRep">Settings Tab.</div>
<div class="tab-pane" id="customerUsers">Settings Tab.</div>
<div class="tab-pane" id="customerProperties">
Messages Tab.
</div>
<div class="tab-pane" id="customerBilling">Settings Tab.</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
This is how I have styled my CSS:
.tabs-left, .tabs-right {
border-bottom: none;
padding-top: 2px;
}
.tabs-left {
border-right: 1px solid #ddd;
}
.tabs-right {
border-left: 1px solid #ddd;
}
...
(Additional CSS code goes here)
...
Does anyone have an idea of what might be causing this issue? Could it possibly be related to my CSS?
Thank you!