<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet">

<div class="wrapper">
  <article>
    <header>
      <h2>Image 1 : Fill</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1653&q=80" alt="" title="" class="image-fill" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
  <article>
    <header>
      <h2>Image 2 : Cover</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1504532724559-22878efd533a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80" alt="" title="" class="image-cover" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
  <article>
    <header>
      <h2>Image 3 : Contain</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1474433188271-d3f339f41911?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1650&q=80" alt="" title="" class="image-contain" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
  <article>
    <header>
      <h2>Image 4 : None</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1474433188271-d3f339f41911?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1650&q=80" alt="" title="" class="image-none" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
  <article>
    <header>
      <h2>Image 5 : None</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1653&q=80" alt="" title="" class="image-none-2" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
  <article>
    <header>
      <h2>Image 6 : Scale-down</h2>
    </header>
    <figure>
      <img src="https://images.unsplash.com/photo-1504532724559-22878efd533a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80" alt="" title="" class="image-scale-down" />
    </figure>
    <footer>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...</p>
    </footer>
  </article>
</div>
$Roboto: 'Roboto', sans-serif;

* {
  font-family: $Roboto;
}

.wrapper {
  width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 40px;
  grid-column-gap: 10%;
  position: relative;
}

article {
  border: solid 1px #d3d3d3;
  padding: 15px 0;
  border-radius: 5px;
}

h2 {
  line-height: 22px;
  font-size: 18px;
  margin: 0 0 10px;
  padding: 0 10px;
}

figure {
  margin: 0;
  position: relative;
  width: 100%;
  height: 120px;
  
  .image-cover {
    object-fit: cover;
    object-position: 0 -250px;
  }
  
  .image-contain {
    object-fit: contain;
    object-position: left top;
  }
  
  .image-fill {
    object-fit: fill;
  }
  
  .image-scale-down {
    object-fit: scale-down;
    object-position: 100% 0;
  }
  
  .image-none {
    object-fit: none;
    object-position: left top;
  }
  
  .image-none-2 {
    object-fit: none;
    object-position: -400px -655px;
  }
  
  img {
    width: 100%;
    height: 100%;
  }
}

p {
  padding: 0 10px;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.