css - boostrap navbar-nav at right is not working -


im using bootstrap navbar not working want. want menu brand @ left , menu items , form @ right. can see in example: "https://jsfiddle.net/bnrgcupl/" menu items appearing next brand. know how fix this?

html:

<nav class="navbar navbar-expand-md navbar-light bg-light">   <a class="navbar-brand" href="#">navbar</a>   <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>    <div class="collapse navbar-collapse justify-content-end" id="navbarsupportedcontent">     <ul class="navbar-nav mr-auto">       <li class="nav-item active">         <a class="nav-link" href="#">home <span class="sr-only">(current)</span></a>       </li>       <li class="nav-item">         <a class="nav-link" href="#">link</a>       </li>       <li class="nav-item">         <a class="nav-link disabled" href="#">disabled</a>       </li>     </ul>     <form class="form-inline my-2 my-lg-0">       <input class="form-control mr-sm-2" type="text" placeholder="search" aria-label="search">       <button class="btn btn-outline-success my-2 my-sm-0" type="submit">search</button>     </form>   </div> </nav> 

remove class mr-auto <ul class="navbar-nav"> declaration. add pull-right class if feel so, not required.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -