title: 5 items per row, auto-resize items in flexbox
body: <p>I have this at the moment:</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>.container {
    background: gray;
    width: 600px;
    display: flex;
    flex-flow: row wrap;
    position: relative;
  }
  .item {
    background: blue;
    width: auto;
    height: auto;
    margin: 4px;
    flex: 1;
    flex-basis: 20%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="item"&gt;A&lt;/div&gt;
    &lt;div class="item"&gt;B&lt;/div&gt;
    &lt;div class="item"&gt;C&lt;/div&gt;
    &lt;div class="item"&gt;D&lt;/div&gt;
    &lt;div class="item"&gt;E&lt;/div&gt;
    &lt;div class="item"&gt;F&lt;/div&gt;
    &lt;div class="item"&gt;G&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What I'm trying to do is have 5 items per row in a flexbox. Currently they don't appear because they don't have a set width/height, which leads me to my next question. Is it possible to auto-resize the items in order for 5 of them to fit per row?</p>
  
  <p>How would I do this?</p>
  
  <p>Thanks!</p>