title: How to avoid an extra space on the right while creating a navigation bar using flexbox (justify-content: space-between/around) properties
body: <p><a href="https://i.stack.imgur.com/oGsNd.png" rel="nofollow noreferrer">enter image description here</a>I got stack by a simple thing...
  I am trying to create a simple navigation for my footer. So, I created a  and placed an  in it. The list contains three <li>s and each of them has an  inside. I wish my list items to be placed horizontally with spaces between / around them. Thus, I decided to use flexbox in this case. The question is that when I am setting display property value of my  to flex and justify-content to center, it work predictably (i.e. all the list items sticked to each other are centered horizontally), however, as soon as I set justify-content to "space-between" or "space-around" I get an extra space to the right side of my content, which makes this space three times bigger than the one on the left side of the content. 
  I tried to search this topic in the history, but found nothing similar. Google search brought me a potential solution - to set flex:1 to each of the list items. But in this case I loose the gaps between the items which is not my intention.
  Below I provide a picture of the problem and my testing code snippets. One more observation is that everything works great in code snippets programs (JSFiddle or Code Pen)...
  <a href="https://i.stack.imgur.com/ZKKb6.png" rel="nofollow noreferrer">Problem illustration</a>  </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>* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .footer {
    height: 100vh;
    background: grey;
    position: relative;
  }
  .container {
    width: 90%;
    height: 30vh;
    margin: auto;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav {
    background: white;
    height: 100%;
  }
  
  .list {
    height: 100%;
    list-style-type: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
  }
  
  .item {
    min-width: 30%;
    background: grey;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="footer"&gt;
      &lt;div class="container"&gt;
        &lt;nav class="nav"&gt;
          &lt;ul class="list"&gt;
            &lt;li class="item"&gt;&lt;a href=""&gt;1&lt;/a&gt;&lt;/li&gt;
            &lt;li class="item"&gt;&lt;a href=""&gt;2&lt;/a&gt;&lt;/li&gt;
            &lt;li class="item"&gt;&lt;a href=""&gt;3&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/nav&gt;
      &lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>