title: CSS - How to force second div to another row when first div overflows
body: <p>I have two divs placed next to each other of equal width. When the text in the first div overflows to a second line, I would like the second div to be placed below the first div- doubling the width of each div. Is this possible in CSS?</p>
  
  <p>I have tried using flexboxes but I don't know where to go from here.</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 {
    display: flex;
    width: 500px;
    border: 1px solid black;
  }
  
  .cell {
    flex: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
    &lt;div class="cell" style="background-color:pink;"&gt;
      Lorem ipsum dolor sit amet, consectetur adipiscing elit
    &lt;/div&gt;
    &lt;div class="cell" style="background-color:lightblue;"&gt;
      Ut enim ad minim veniam, quis nostrud exercitation ullamco
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>