title: How to make flex-wrap work with flex-basis?
body: <p>I have two divs present inside a parent div. The first div has an absolutely positioned image, whereas the other has some text content. I want the content of the parent div to wrap. So this is what I set:</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>.item-content {
    display: flex;
    flex-wrap: wrap;
  }
  
  .image-container {
    flex-basis: 48%;
    position: relative;
    border: 2px solid red;
  }
  
  .image {
    display: block;
    position: absolute;
    left: -100px;
  }
  
  .text-content {
    margin: 0px auto;
    flex-basis: 43%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div className="item-content"&gt;
    &lt;div className="image-container"&gt;
      &lt;img src={desktopImage} alt="" className="image " /&gt;
    &lt;/div&gt;
    &lt;div className="text-content"&gt;
      &lt;h2&gt;{title}&lt;/h2&gt;
      &lt;p&gt;{subtitleText}&lt;/p&gt;
      &lt;div className="divider" /&gt;
      &lt;h5&gt;The challenge&lt;/h5&gt;
      &lt;p className="description"&gt;{description}&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But, this doesn't make the content wrap when the screen size changes. How can I make the 'text-content' class wrap?</p>