title: Flexbox: 4 items per row
body: <p>I'm using a flex box to display 8 items that will dynamically resize with my page. How do I force it to split the items into two rows? (4 per row)?</p>
  
  <p>Here is a relevant snip:</p>
  
  <p>(Or if you prefer jsfiddle - <a href="http://jsfiddle.net/vivmaha/oq6prk1p/2/">http://jsfiddle.net/vivmaha/oq6prk1p/2/</a>)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.parent-wrapper {
    height: 100%;
    width: 100%;
    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-grow: 1;
    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&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>