title: CSS prevent div flex from stretching child
body: <p>The moment div has the <code>flex</code> display property it stretches the paragraph. I seem to be missing something but no property I can think to put on the flex div changes this. How can I prevent this behavior? (without the flex property I get the result on the right in the image)</p>
  <p><a href="https://i.stack.imgur.com/34e6j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/34e6j.png" alt="enter image description here" /></a></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>div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 200px;
    width: 100px;
  }
  
  p {
    background-color: green;
    display: inline;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;p&gt;
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>