"Panel with Navbar"
Bootstrap 3.3.0 Snippet by aarondesignedit

<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="panel panel-default"> <div class="panel-heading nav navbar-default"> <ul class="nav navbar-nav navbar-right"> <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> <li role="separator" class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul></div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-default"> <div class="panel-heading nav navbar-default"> <div class="row"> <div class="col-md-6"> <h3 class="panel-title"><a href="#">Panel title</a></h3> </div> <div class="col-md-6"> <ul class="nav navbar-nav navbar-right"> <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> <li role="separator" class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> </div> </div> </div> <div class="panel-body"> Panel content </div> </div> </div> </div>
/* Using default Bootstrap 3 classes we zero out the top and bottom padding .panel-heading ususally needs */ .panel-heading.nav.navbar-default{padding-top:0px;padding-bottom:0px;} /* Reintroduce 20px for .panel-title when a navbar is within .panel-heading. This can be put back to @line-height-computed; in your LESS file which is the default in type.less */ .panel-heading.nav.navbar-default h3.panel-title{margin-top:20px;}

Related: See More


Questions / Comments: