Press/to search

Layouts

Object Fit

Utilities for sets how the content of a replaced element (img or video tag) should be resized.


Class

classcss
object-containobject-fit: contain
object-coverobject-fit: cover
object-fillobject-fit: fill
object-noneobject-fit: none
object-scale-downobject-fit: scale-down

Variant

ResponsiveDark ModeLight ModeReduce-MotionPortraitLandscapeHoverGroup-HoverFocusGroup-FocusFocus-VisibleFocus-WithinActiveVisitedCheckedDisabled

Default enabled variants. Read more information about the Responsive and Pseudo-Class Variants.