title: Match height of image
body: <p>I have a flexbox layout that has 2 images side by side, one of them is cropped to 16x9 using percentage bottom padding</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:100%;
  }
  
  .left, .right {
    height:100%;
  }
  
  .image_16x9_container{
      display: block;
      height: 0;
      padding-bottom: 56.25%;
      overflow: hidden;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  
    &lt;div class="left"&gt;
      &lt;div class="img_wrapper"&gt;
        &lt;img src="https://picsum.photos/501/500"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="right"&gt;
      &lt;div class="img_wrapper"&gt;
        &lt;div class="image_16x9_container"&gt;
          &lt;img src="https://picsum.photos/500/500"&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is working correctly, but I would like to make the image on the left hand side match the height.</p>
  
  <p>Anyone any ideas how I can achieve this using flexbox CSS or is this a job for jQuery?</p>