<img class="img" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-90/image.png"> 

<img class="cover" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-90/image.png"> 
img {
  width: 200px;
  height: 300px;
  padding: 20px;
}

.cover {
    object-fit: cover;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.