"Vertical Menu"
Bootstrap 3.1.0 Snippet by josemiguelweb

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-5 col-sm-8 col-xs-9 ppit-tab-container"> <div class="col-lg-2 col-md-3 col-sm-3 col-xs-3 ppit-tab-menu"> <div class="list-group"> <a href="#" class="list-group-item active text-center"> Home </a> <a href="#" class="list-group-item text-center"> Search </a> <a href="#" class="list-group-item text-center" onclick="gotoDiv('account-summary-holder')"> Account Summary </a> <a href="#" class="list-group-item text-center" onclick="gotoDiv('usage-holder')"> Usage Summary </a> <a href="#" class="list-group-item text-center" onclick="gotoDiv('payment-holder')"> Payment History </a> <a href="#" class="list-group-item text-center" onclick="gotoDiv('search-holder')"> Search history </a> <a href="#" class="list-group-item text-center"> Upload History </a> </div> </div> <div class="col-lg-10 col-md-9 col-sm-9 col-xs-9 ppit-tab"> <div class="ppit-tab-content active"> <center> <p> Account Summary </p> </center> </div> <div class="ppit-tab-content"> <center> <p> Search </p> </center> </div> <div class="ppit-tab-content"> <center> <p> Account Summary </p> </center> </div> <div class="ppit-tab-content"> <center> <p> Usage Summary </p> </center> </div> <div class="ppit-tab-content"> <center> <p> Account Summary </p> </center> </div> </div> </div> </div> </div>
/* ppit tab */ div.ppit-tab-container{ z-index: 10; background-color: #ffffff; padding: 0 !important; border-radius: 4px; -moz-border-radius: 4px; border:1px solid #ddd; background-clip: padding-box; } div.ppit-tab-menu{ padding-right: 0; padding-left: 0; padding-bottom: 0; } div.ppit-tab-menu div.list-group{ margin-bottom: 0; } div.ppit-tab-menu div.list-group>a{ margin-bottom: 0; } div.ppit-tab-menu div.list-group>a .glyphicon, div.ppit-tab-menu div.list-group>a .fa { color: #8d6cab; } div.ppit-tab-menu div.list-group>a:first-child{ border-top-right-radius: 0; -moz-border-top-right-radius: 0; } div.ppit-tab-menu div.list-group>a:last-child{ border-bottom-right-radius: 0; -moz-border-bottom-right-radius: 0; } div.ppit-tab-menu div.list-group>a.active, div.ppit-tab-menu div.list-group>a.active .glyphicon, div.ppit-tab-menu div.list-group>a.active .fa{ background-color: #8d6cab; background-image: #8d6cab; color: #ffffff; } div.ppit-tab-menu div.list-group>a.active:after{ content: ''; position: absolute; left: 100%; top: 50%; margin-top: -13px; border-left: 0; border-bottom: 13px solid transparent; border-top: 13px solid transparent; border-left: 10px solid #8d6cab; } div.ppit-tab-content{ background-color: #ffffff; /* border: 1px solid #eeeeee; */ padding-left: 20px; padding-top: 10px; } div.ppit-tab div.ppit-tab-content:not(.active){ display: none; }
$(document).ready(function() { $("div.ppit-tab-menu>div.list-group>a").click(function(e) { e.preventDefault(); $(this).siblings('a.active').removeClass("active"); $(this).addClass("active"); var index = $(this).index(); $("div.ppit-tab>div.ppit-tab-content").removeClass("active"); $("div.ppit-tab>div.ppit-tab-content").eq(index).addClass("active"); }); });

Related: See More


Questions / Comments: