title: How to distribute evenly & automatically items of an horizontal list in a container w/css ala apple
body: <p>I'd like to create a large navbar similar to apple.com's.</p>
  
  <p>What I try to reproduce from apple's navbar is :</p>
  
  <ul>
  <li>the li in the navbar are centered;</li>
  <li>the browser automatically distribute evenly the space between each li  in the ul container
  (different from flex-grow as explained here:
  <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/" rel="nofollow noreferrer">https://css-tricks.com/snippets/css/a-guide-to-flexbox/</a>);</li>
  <li>only the space between the li elements is resized when resizing the
  browser's window.</li>
  </ul>
  
  <p>html:</p>
  
  <pre><code>&lt;nav id="gn"&gt;
    &lt;div id="gn-content"&gt;
      &lt;ul class="gn-menu"&gt;
        &lt;li class="gn-item gn-menu-brand"&gt;&lt;a class="gn-link gn-link-brand" href="#"&gt;&lt;span class="gn-link-span"&gt;Brand&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="gn-item gn-menu-products"&gt;&lt;a class="gn-link gn-link-products" href="#"&gt;&lt;span class="gn-link-span"&gt;Products&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="gn-item gn-menu-services"&gt;&lt;a class="gn-link gn-link-services" href="#"&gt;&lt;span class="gn-link-span"&gt;Services&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="gn-item gn-menu-about"&gt;&lt;a class="gn-link gn-link-about" href="#"&gt;&lt;span class="gn-link-span"&gt;About&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="gn-item gn-menu-contact"&gt;&lt;a class="gn-link gn-link-contact" href="www.soundbody.io/contact"&gt;&lt;span class="gn-link-span"&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="gn-item gn-menu-signin"&gt;&lt;a class="gn-link gn-link-signin" href="#"&gt;&lt;span class="gn-link-span"&gt;Sign In&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#gn {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 44px;
    background-color: #212121;
    z-index: 1;
  }
  
  #gn #gn-content {
    display: block;
    position: relative;
    max-width: 980px;
    height: 44px;
    margin: 0 auto;
    padding: 0 22px;
    opacity: 0.65;
    z-index: 2;
  }
  
  #gn .gn-menu {
    display: block;
    position: relative;
    width: auto;
    height: 44px;
    margin: 0 -10px;
    padding: 0;
    text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
    z-index: 3;
  }
  
  #gn .gn-item {
    display: inline-block;
    position: relative;
    width: auto;
    height: 44px;
    margin: 0 50px;
    padding: 0 0px;
    vertical-align: top;
    opacity: 1;
    z-index: 4;
  }
  
  #gn .gn-link {
    display: inline-block;
    position: relative;
    width: auto;
    height: 44px;
    margin: 0 0;
    padding: 0 10px;
    color: white;
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: center center;
    background-origin: content-box;
    z-index: 5;
  }
  
  #gn .gn-link-span {
    display: block;
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    top: 50%;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
  
  .gn-link-brand {
    background-image: url("/img/brand.svg");
    background-size: cover;
  }
  </code></pre>
  
  <p>I cannot find the trick on the net. Would appreciate your help!</p>
  
  <p>Cheers!</p>