title: Alter Bootstrap nav tabs row wrapping
body: <p>With Bootstrap 3, rows of nav-tabs wrap in a way where the widest rows tend to be at the top while the shorter rows are at the bottom:</p>
  
  <p><a href="https://i.stack.imgur.com/XTAFX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XTAFX.png" alt="enter image description here"></a></p>
  
  <p>This leaves the tabs looking awkward and unbalanced. Is there a way that nav-tabs can be modified so that the rows are wider at the bottom? More like this:</p>
  
  <p><a href="https://i.stack.imgur.com/tlj0d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tlj0d.png" alt="enter image description here"></a></p>
  
  <p>Here's the <a href="https://jsfiddle.net/2tu6a2yh/" rel="noreferrer">JSFiddle</a> that produced the first image.</p>
  
  <pre><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"&gt;
  
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-sm-6"&gt;
        &lt;ul class="nav nav-tabs"&gt;
          &lt;li class="active"&gt;&lt;a href="#"&gt;Foo Bar 1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 2&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 3&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 4&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 5&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 6&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 7&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 8&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 9&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 10&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 11&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBar 12&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBarBaz 13&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;FooBarBaz 14&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>