title: Flexbox showing dynamic number of items with 5 items per row using flex basis to consume extra space
body: <p>I want to show 5 items per row using flexbox. </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>.parent-wrapper {
    height: 100%;
    width: 181px;
    border: 1px solid black;
  }
  
  .parent {
    display: flex;
    font-size: 0;
    flex-wrap: wrap;
    margin: -10px 0 0 -10px;
  }
  
  .child {
    display: inline-block;
    background: blue;
    margin: 10px 0 0 10px;
    flex: 1 1 calc(100% * (1/5) - 10px - 1px);
    height: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;div class="parent-wrapper"&gt;
      &lt;div class="parent"&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
        &lt;div class="child"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to use the flex grow, so that resize will not affect the data displayed. This code above will stretch the data if the row less than 5 items. If i didnt use the flex grow, it works fine for the view, but when resizing there will show some blank space after the data displayed. </p>
  
  <p>If without flex grow, how can i consume extra space by just using the flex basis</p>
  
  <blockquote>
    <p>calc(100% * (1/5) - 10px - 1px)</p>
  </blockquote>