object-fit: fill

MDN Logo

object-fit: contain

MDN Logo

object-fit: cover

MDN Logo

object-fit: none

MDN Logo

object-fit: scale-down

MDN Logo