CSS Demo: object-fit
Reset
Interactive examples cannot be shown because JavaScript is disabled.
This feature is not supported by your current browser. Check Browser compatibility for more details.
object-fit: fill;
Copy to Clipboard
object-fit: contain;
Copy to Clipboard
object-fit: cover;
Copy to Clipboard
object-fit: none;
Copy to Clipboard
object-fit: scale-down;
Copy to Clipboard
Copied!