title: Full height image as the text
body: <p>i'm trying to make the image take the full height of the div as the text and keep it proportional with width as the overflow is hidden and image is centered,I used display flex and i don't want to use background-image in css because i have multiple images and articles . can anyone help? </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 {
    border: 1px dotted red;
    display: block;
  }
  
  .article {
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    width: 100%;
    overflow: auto;
    padding: 10px;
  }
  
  .article-content {
    height: 100%;
    width: 48.6666666%;
    text-align: left;
  }
  
  .image {
    margin-left: 3.5%;
    width: 48%;
    overflow: hidden;
  }
  
  .img-control {
    display: flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
  }
  
  .img-control img {
    height: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="article"&gt;
    &lt;div class="article-content"&gt;
      &lt;h3&gt;What is Lorem Ipsum?&lt;/h3&gt;
      &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
        has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
        publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
        &lt;p&gt;
        Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
        has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
        publishing software like Aldus PageMaker including versions of Lorem Ipsum.
        &lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="image"&gt;
      &lt;div class="img-control"&gt;
        &lt;img src="http://via.placeholder.com/490x338" alt="" /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>