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;
}
The CSS object-position
property is used to specify how an <img> or <video> should be positioned within its container.
img {
width: 200px;
height: 300px;
object-fit: cover;
}