title: Bootstrap ul navigation float right but order left to right
body: <p>I am trying to code a bootstrap navigation structure with 9 (don't laugh at my client please) buttons. </p>
  
  <p>I want the first 5 buttons on top of the other 4, aligned to the right. The problem is that when I align them to the right, the buttons reverse in order. I solved this by creating two different lists, but that makes it reverse it when making the screen smaller. I think there should be a simple solution, but I can't find it. You can see an example at: <a href="http://www.sanderfish.nl/haptokuijpers/index.html" rel="nofollow">http://www.sanderfish.nl/haptokuijpers/index.html</a></p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;div class="navbar navbar-inverse navbar-static-top"&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-left 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.html"&gt;&lt;img src="assets/img/logo.png"&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="voor-wie.html"&gt;Voor wie&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="psychosomatiek.html"&gt;Psychosomatiek&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="haptotherapie.html"&gt;Haptotherapie&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="diana-kuijpers.html"&gt;Diana Kuijpers&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="vergoeding.html"&gt;Vergoeding&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="klachtenlijsten.html"&gt;Klachtenlijsten&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="uitgeverij-vib.html"&gt;Uitgeverij VIB&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And this is the CSS:</p>
  
  <pre><code>@media (min-width: 768px) {
  
  .navbar-nav {
    float: right;
    margin: 0;
    text-align: right;
  }
  .navbar-nav &gt; li {
    float: left;
    text-align: right;
  }
  .navbar-nav &gt; li &gt; a {
    padding-top: 20px;
    padding-bottom: 10px;
    display: block;
    text-align: right;
  }
  .navbar-nav.navbar-right:last-child {
    margin-right: 0px;
    text-align: right;
  }
  }
  
  @media (min-width: 768px) {
  .navbar-left {
    float: left !important;
  }
  .navbar-right {
    float: right !important;
    padding-right: 34px;
    text-align: right;
    max-width: 750px;
  }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>