WeCodeAcademy
❮ border-collapseaspect-ratio ❯

object-fit

How an image fills its box.

Group: Images

Syntax

object-fit: cover | contain;

Example

Examplehtml
Open in editor »

← All of CSS Properties