"Navbar Username/Account Info Responsive - Display dropdown on desktop"
Bootstrap 4.0.0 Snippet by wondermarq

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <div class="navbar navbar-light navbar-expand navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <a target="_blank" href="#" class="navbar-brand">My sApp.</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav mr-auto"> <li><a href="#">Inicio</a></li> <li class="active"><a href="http://bootsnipp.com/snippets/featured/nav-account-manager" target="_blank">Inspirado en este ejemplo</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><i class="fa fa-user-circle"></i></strong> <span class="glyphicon glyphicon-chevron-down d-lg-none"></span> </a> <ul class="dropdown-menu dropdown-menu-right"> <li> <div class="navbar-login"> <div> <p class="text-left"><strong>Nombre Apellido</strong></p> <p class="text-left small">correoElectronico@email.com</p> </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; } .fa.fa-user-circle { font-size: 64px; } ul.nav.navbar-nav.navbar-right li{ display:flex; } @media (min-width:992px){ .navbar-expand .navbar-nav .dropdown-menu-right{ display:contents; } .dropdown-toggle::after{ display:none; } }

Related: See More


Questions / Comments: