Skip to content

Object Fit

Objects

The object-fit CSS property defines how the content of a replaced element such as an or should be sized to fit it's container. Note, when using these classes you must also have a height and width added to the targeted element.

Class Properties
wpex-object-contain
object-fit: contain;
wpex-object-cover
object-fit: cover;
wpex-object-fill
object-fit: fill;
wpex-object-scale-down
object-fit: scale-down;
wpex-object-none
object-fit: none;
Search