title: Equal space between flexbox items with wrapping text
body: <p>I have a flexbox with three items (divs) laid out horizontally.
  I would like the spacing between these items to be equal.
  The problem is, however, that I have breakable text within these divs.</p>
  
  <p>In the example below, the spacing between item 1 and 2 is less than the spacing between item 2 and 3 because the text in item 2 is wrapping without the width of the div being adjusted.</p>
  
  <p>Any suggestions on how to achieve equal spacing while still allowing breaking text?</p>
  
  <p>(Note that the background colors in the example are to illustrate the problem of item 2 being off-center)</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>.outerContainer {
    width: 430px;
  }
  
  .container {
    display: flex;
    padding: 20px;
    background-color: tomato;
  }
  
  .container &gt; div:not(:last-child) {
    margin-right: 20px;
  }
  
  .container &gt; div {
    background-color: pink;
    word-break: break-word;
    display: flex;
  }
  
  .fig {
    border: 2px solid black;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 5px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="outerContainer"&gt;
    &lt;div class="container"&gt;
      &lt;div&gt;
        &lt;div class="fig"&gt;1&lt;/div&gt;
        &lt;div&gt;two words&lt;/div&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;div class="fig"&gt;2&lt;/div&gt;
        &lt;div&gt;some we somewrap &lt;/div&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;div class="fig"&gt;3&lt;/div&gt;
        &lt;div&gt;some text&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>