"Panel with Nested Navs in Heading"
Bootstrap 3.3.0 Snippet by greatghoul

<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="//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-md-6"> <h3 class="page-header">Page Title</h3> <div class="panel panel-default"> <div class="panel-heading"> <ul class="nav nav-pills nav-category nav-category-root"> <li><a href="#">Main Item 1</a></li> <li class="active"><a href="#">Main Item 2</a></li> <li><a href="#">Main Item 3</a></li> </ul> <ul class="nav nav-pills nav-category nav-category-sub"> <li><a href="#">Item1</a></li> <li><a href="#">Item2</a></li> <li><a href="#">Item3</a></li> <li><a href="#">Item4</a></li> <li><a href="#">Item5</a></li> </ul> </div> <div class="panel-body"> Hi there. </div> </div> </div> </div> </div>
.panel-heading .nav-category { padding: 5px 15px; } .panel-heading .nav-category li { line-height: 1.5; } .panel-heading .nav-category li a { padding: 0px 5px; border-radius: 3px; } .panel-heading .nav-category-root { margin: -10px -15px 0 -15px; padding: 10px 15px; font-size: 0.8; background-color: #fbfbfb; } .panel-heading .nav-category-sub { margin: 0 -15px -10px -15px; padding: 5px 15px; } .panel-heading .nav-category-sub li a { color: #828a91; } .panel-heading .nav-category-sub li.active > a { background-color: #e1e1e1; }

Related: See More

Questions / Comments: