CSS Object-fitControls how replaced content such as an image fits its box.ExampleCopy codeobject-fit: cover;Further referenceMDN CSS reference