Skip to content

Glossary: CSS Layout and Responsive Design

object-fit

Also written: cover, contain

How an image fills a box of a different shape: `fill` stretches, `cover` crops to fill, `contain` fits inside with empty bands.

Where the book teaches it

Related terms

object-positionaspect-ratio