| Class | Description | |
|---|---|---|
object-containSets object-fit: contain. Image fits inside container, letterboxed. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .object-contain | Sets object-fit: contain. Image fits inside container, letterboxed. |
object-coverSets object-fit: cover. Image fills container, cropping if needed. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .object-cover | Sets object-fit: cover. Image fills container, cropping if needed. |
object-fillSets object-fit to fill, stretching the element's content to fit its container. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .object-fill | Sets object-fit to fill, stretching the element's content to fit its container. |
object-noneSets object-fit to none, maintaining the element's original size. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .object-none | Sets object-fit to none, maintaining the element's original size. |
object-scale-downSets object-fit to scale-down, behaving as either none or contain depending on which is smaller. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .object-scale-down | Sets object-fit to scale-down, behaving as either none or contain depending on which is smaller. |