title: Child div doesn't fill div
body: <p>I'm facing an issue while building a custom table. I already tried fiddling around with the Chrome Inspection Tool and changing everything, but nothing get me towards the goal. I already searched all around SO, but nothing could help me. I can't be the only one that is facing this issue, seriously...</p>
  
  <p>The table is already implemented into the page, but I made a simplified version to reproduce the issue.</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>.scrollwrapper {
    overflow: auto;
    border-radius: 2px;
  }
  
  .outtertable {
    transition: .2s;
    color: #333;
    background-color: rgba(0, 0, 0, 0.03);
    display: flex;
  }
  
  .theader {
    font-weight: 600;
  }
  
  .tbody:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .item {
    min-width: 50px;
    padding: 10px;
    width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="scrollwrapper"&gt;
    &lt;div class="outtertable theader"&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="outtertable tbody"&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
      &lt;div class='item'&gt;Item&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The result of the code above is this:
  <a href="https://postimg.org/image/643m24811/" rel="nofollow noreferrer"><img src="https://s26.postimg.org/qbh1uf5ih/Screenshot_78.png" alt="Screenshot_78.png"></a></p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p><strong>EDIT:</strong> An answer was given, but I need to say that the items should get nearer each other when the div is shrinking in width.</p>