Create responsive images - Netflix way


PHOTO EMBED

Sun Jan 17 2021 21:25:05 GMT+0000 (UTC)

Saved by @orlando

.wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}
content_copyCOPY

https://medium.com/free-code-camp/time-saving-css-techniques-to-create-responsive-images-ebb1e84f90d5