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.
Glossary: CSS Layout and Responsive Design
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.