title: Re-positioning items on navbar collapse in Bootstrap
body: <p>I am working on a navbar for a webpage. I was able to make a navbar with data aligned left and right, and Brand in center. However, when the navbar collapses, the alignment of the items becomes <strong>Left (over) Brand (over) Right</strong>. I want the Brand to stay up at top and other items to collapse.</p>
  
  <p>Here is my code:</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-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"&gt;&lt;/script&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"&gt;&lt;/script&gt;
    &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;header class="sticky-top"&gt;
      &lt;nav class="navbar navbar-expand-lg navbar-toggleable-md navbar-dark bg-primary"&gt;
          &lt;div class="navbar-collapse collapse w-100 order-1 order-md-0 dual-collapse2"&gt;
              &lt;ul class="navbar-nav mr-auto"&gt;
                  &lt;li class="nav-item home"&gt;
                      &lt;a class="nav-link" href="/"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item about"&gt;
                      &lt;a class="nav-link" href="/about"&gt;About&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="mx-auto order-0"&gt;
              &lt;a class="navbar-brand mx-auto" href="/"&gt;Brand&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse w-100 order-3 dual-collapse2"&gt;
              &lt;ul class="navbar-nav ml-auto"&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link" href="#"&gt;Login&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".dual-collapse2"&gt;
              &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
          &lt;/button&gt;
      &lt;/nav&gt;
  &lt;/header&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The collapse functionality works fine everywhere except when the page is inspected using chrome dev tools. In chrome dev tools, the above-mentioned order is displayed (left->brand->right). Is this a bug in chrome, or I need to do some additional configuration? </p>
  
  <p><a href="https://i.stack.imgur.com/pWdwh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pWdwh.png" alt="enter image description here"></a></p>