CSS The object-position Property

The CSS object-position property is used to specify how an <img> or <video> should be positioned within its container.

Example

img {
width: 200px;
height: 300px;
object-fit: cover;
}

Continue reading CSS The object-position Property