title: How to divide menus to left and right in bootstrap
body: <p>I am trying to create a navbar in bootstrap 3.x. But I have an issue (<a href="https://jsfiddle.net/ns82ne1z/" rel="nofollow noreferrer">JsFiddle</a>) when trying to divide the menus to the left and right as in the following example. </p>
  
  <pre><code>Home - About - Services - Contact                                           Login - Register
  </code></pre>
  
  <p>But the result I get with my code is something like this: </p>
  
  <pre><code>Home - About -                                                                     Login
  Services - Contact                                                               Register
  </code></pre>
  
  <p>This is my code currently. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.site-top-nav{
      padding:0.5em;
      color: #fff;
      font-size: 12px;
      width: 100%;
      text-transform: uppercase;
  }
  
  .site-top-nav li{
      margin-left: 2%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;nav class="navbar navbar-inverse" role="nagivation"&gt;
      &lt;div class="container-fluid"&gt;
       &lt;div class="navbar-inner site-top-nav"&gt;
          &lt;ul class="nav navbar-nav"&gt;
            &lt;li&gt;Home&lt;/li&gt;
            &lt;li&gt;About&lt;/li&gt;
            &lt;li&gt;Services&lt;/li&gt;
            &lt;li&gt;Contact&lt;/li&gt;
          &lt;/ul&gt;
          &lt;ul class="nav navbar-nav" style="float:right;"&gt;
            &lt;li&gt;Login&lt;/li&gt;
            &lt;li&gt;Register&lt;/li&gt;
          &lt;/ul&gt;
       &lt;/div&gt;
     &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have tried other methods, but I can't get the effect I needed. </p>