<div class="img-wrapper">
</div>
<a href="" class="img-button">Go to</a>
.img-wrapper {
  width: 33.3%;
  position: relative;
  background-image: url(https://picsum.photos/id/237/400/300);
  background-size: cover;
  
}
.img-wrapper:before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 80%;
}
.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-button {
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 30px;
  width: 100px;
  height: 30px;
  color: #fff;
  background: red;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.