title: How to force flex children not to overflow the container?
body: <p>Given a flexbox container, how could I make sure that, if children have lots of content, they don't overflow the container?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    display: flex;
    flex-direction: column;
    background-color: #ccc;
    height: 210px;
    width: 200px;
  }
  .child {
    display: flex;
    width: 100px;
  }
  .first {
    background-color: rgba(255, 0, 0, 0.2);
  }
  .second {
    background-color: rgba(0, 255, 0, 0.2);
  }
  .third {
    background-color: rgba(0, 0, 255, 0.2);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="first child"&gt;first first first first first first first&lt;/div&gt;
    &lt;div class="second child"&gt;second second second second second second second second second second second second second second second second second second second&lt;/div&gt;
    &lt;div class="third child"&gt;third&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/VjIeK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VjIeK.png" alt="enter image description here"></a></p>