title: Twitter Bootstrap navbar float right moves div to new line
body: <p>Hello I'm trying to create a section on the right of the navbar. I used the div class navbar-right which should float the div to the right, but I am getting a new line instead.</p>
  
  <p>See below for code &amp; thanks!</p>
  
  <pre><code> &lt;div class="navbar navbar-default navbar-fixed-top"&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class="navbar-brand" href="index.php"&gt;xxx&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="active"&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="about.php"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;div class="navbar-right"&gt;
        &lt;p&gt;
          &lt;b&gt; '.$username.' &lt;/b&gt; | Access Level: '.$level.' | &lt;a href=logout.php&gt;Logout&lt;/a&gt;
        &lt;/p&gt; 
  
  
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>