title: Equal widths in navbar bootstrap 4
body: <p>Need some help styling a navbar with bootstrap 4 and flex box. The design I would like is essentially as below, but I would like the logo in the centre and therefore the space for the links either side to be equal.</p>
  
  <pre><code>         --------------------------------------------------------------
  |         |    Link  |   Link  |   Logo   |  LongerLink  |  LongerLink |        |
           --------------------------------------------------------------
  </code></pre>
  
  <p>The issue I have at the moment is that the LongerLink items are taking up more space than the shorter Links and so the logo is offset to the left. How do I fix this? Code below.</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>.navbar {
    background-color: #389FCE;
    height: 100px;
    display: flex;
  }
  
  .navbar-nav {
    width: 100%;
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-link {
    font-family: 'Nexa-Bold', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    color: white;
    line-height: 80px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="navbar navbar-expand-sm"&gt;
    &lt;button class="navbar-toggler" data-toggle="collapse" data-target="#collapsibleNavbar" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"&gt;
      &lt;span class="navbar-toggler-icon"&gt;
        &lt;i class="fas fa-bars" style="color:white; font-size:28px;"&gt;&lt;/i&gt;
      &lt;/span&gt;
    &lt;/button&gt;
  
  &lt;div class="collapse navbar-collapse" id="collapsibleNavbar"&gt;
      &lt;ul class="navbar-nav nav-fill w-100"&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" id="shortLink" href="#"&gt;HOME&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" id="shortLink" href="#"&gt;ABOUT&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;
            &lt;img src="images/Logo_navbar.png"&gt;
          &lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" id="longLink" href="#"&gt;PRODUCTS&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" id="longLink" href="#"&gt;CONTACT&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>