javascript - Make Social Media Buttons Horizontal on Bootstrap mobile dropdown -
how go getting social media buttons align next each other -- is, horizontally rather vertically -- in mobile mode on drop down menu?
the icons within standard bootstrap nav bar, aligned right side of bar.
whenever clicks on mobile drop down menu lists these icons vertically. want them horizontal.
here code menu div.
<div class="container"> <div class="header"> <ul class="nav nav-pills pull-right"> <li class="active"></li> <li></li> <li></li> </ul> <div class="navbar navbar-inverse 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="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html">welcome </a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="index.html">home</a></li> <li><a href="http://broadmarkpartners.com">broadmark partners</a></li> <li><a href="http://broadmark.io/blog">blog</a></li> <li class="dropdown"> <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 class="divider"></li> <li class="dropdown-header">nav header</li> <li><a href="#">separated link</a></li> <li><a href="#">one more separated link</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li> <a href="http://facebook.com/" class="btn btn-social-icon btn-facebook"> <i class="fa fa-facebook"></i> </a> </li> <li> <a href="http://twitter.com/" class="btn btn-social-icon btn-twitter" > <i class="fa fa-twitter"></i> </a> </li> <li> <a href="http://www.linkedin.com/in/" class="btn btn-social-icon btn-linkedin"> <i class="fa fa-linkedin"></i> </a> </li> <li> <a href="https://github.com/broadmarkio" class="btn btn-social-icon btn-github"> <i class="fa fa-github"></i> </a> </li> </ul> </div> <!--/.nav-collapse --> </div> </div> <h3 class="text-muted"> </h3> <p> </p> </div>
you need apply nav-pills
-class list so.
<ul class="nav navbar-nav navbar-right nav-pills">
see sample working here: http://www.bootply.com/pm5ssvzroi
Comments
Post a Comment