title: How do I wrap row items using CSS Flexbox?
body: <p>I'm fairly new to CSS Flexbox but I'm trying to create a horizontal card, where an image is on the left, and text/buttons are on the right. When the site is scaled down (for mobile use), the row items should wrap and the image should sit on top of the text. I've tried setting the wrap property to wrap but it wraps for large screens when it should only wrap for smaller screens. See code below:</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>* {
    margin: 0;
    padding: 0;
  }
  
  #box {
    padding: 20px;
  }
  
  img {
    width: 200px;
  }
  
  #outer-container {
    display: flex;
    flex-wrap: wrap;
    border: solid 1px;
    width: 70%;
    margin: auto;
  }
  
  #inner-container {
    border: solid 1px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="outer-container"&gt;
    &lt;img src="https://icatcare.org/app/uploads/2018/07/Thinking-of-getting-a-cat.png" alt="cat"&gt;
    &lt;div id="inner-container"&gt;
      &lt;div&gt;
        &lt;h3&gt;Heading&lt;/h3&gt;
        &lt;br&gt;
        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
          dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
      &lt;/div&gt;
      &lt;div&gt;
        Other stuff
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Should I attempt to use another approach (like Bootstrap's card layouts) or is there something obvious I'm missing?</p>