Skip to content
HTML.ONE
Home CSS Properties

CSS Object-fit

Controls how replaced content such as an image fits its box.

Example

object-fit: cover;

Further reference

MDN CSS reference