twitter bootstrap - I would like to have sign up and login links at the top right of my navbar and have a responsive collapsed menu justified left -


i'm quite new bootstrap , i've been trying sort log in , sign link on right side of navbar.

pull-right working, affects collapsed menu, don't want: inline main nav in same nav menu different ul list, possible?

edit: added rest of navbar code. i've not got css on col-md-2 @ moment tried using @media min-width , max-width float:left or text-align:left, didn't work @ , tried without @media.

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid"> <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.php"><img src="assets/designclick.png" alt="design click"></a> </div> <div class="navbar-collapse collapse">   <ul class="nav navbar-nav">     <li class="active"><a href="#">discover</a></li>     <li><a href="#">designers</a></li>     <li><a href="#">jobs</a></li>     <li><a href="#">about</a></li>   </ul>   <div class="col-md-2 pull-right">     <ul class="nav navbar-nav memblogin">       <li class="memblogin"><a href="#">sign up</a></li>         <li class="dropdown" id="menulogin">           <a class="dropdown-toggle" href="#" data-toggle="dropdown" id="navlogin">login</a>           <div class="dropdown-menu" style="padding:17px;">             <form class="form" id="formlogin">                <input name="username" id="username" type="text" placeholder="username">                <input name="password" id="password" type="password" placeholder="password"><br>               <button type="button" id="btnlogin" class="btn">login</button>             </form>           </div>     

i fixed post - bootstrap navbar left, center , right aligned items

i removed col-md , pull-right , added navbar-right instead, added padding-right: 30px; navbar in css. sign , login links @ top right whilst aligning left when nav collapsed. code -

<ul class="nav navbar-nav navbar-right">     <li class="memblogin"><a href="#">sign up</a></li>       <li class="dropdown" id="menulogin">         <a class="dropdown-toggle" href="#" data-toggle="dropdown" id="navlogin">login</a>         <div class="dropdown-menu" style="padding:17px;">           <form class="form" id="formlogin">              <input name="username" id="username" type="text" placeholder="username">              <input name="password" id="password" type="password" placeholder="password"><br>             <button type="button" id="btnlogin" class="btn">login</button>           </form> 

and css is

.navbar-inverse {  background-color: #0f1122;  padding-right: 30px;  } 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -