"User Account like google in Navbar"
Bootstrap 3.1.0 Snippet by cijhei

<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="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a target="_blank" href="#" class="navbar-brand">My App.</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="#">Home</a></li> <li class="active"><a href="#" target="_blank">About</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">DropDown <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#">Link 2</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="glyphicon glyphicon-user"></span> <strong>Salman</strong> <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu"> <li> <div class="navbar-login"> <div class="row"> <div class="col-lg-4"> <p class="text-center"> <span class="glyphicon glyphicon-user icon-size"></span> </p> </div> <div class="col-lg-8"> <p class="text-left"><strong>Salman Khan</strong></p> <p class="text-left small">crazytodevelop@@gmail.com</p> <p class="text-left"> <a href="#" class="btn btn-primary btn-block btn-sm">Profile</a> </p> </div> </div> </div> </li> <li class="divider navbar-login-session-bg"></li> <li class="navbar-login-session-bg"> <div class="navbar-login navbar-login-session"> <div class="row"> <div class="col-lg-12"> <p> <a href="#" class="btn btn-danger btn-block">Logout</a> </p> </div> </div> </div> </li> </ul> </li> </ul> </div> </div> </div>
.navbar-login { width: 305px; padding: 10px; padding-bottom: 0px; } .navbar-login-session { padding: 10px; padding-bottom: 0px; padding-top: 0px; } .navbar-footer { background-color:#DDD; } .navbar-footer-content { padding:15px 15px 15px 15px; } .dropdown-menu { padding: 0px; overflow: hidden; } .icon-size { font-size: 87px; }

Related: See More


Questions / Comments: