Object Position

Set how to position the container's content.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

op-b
object-position: bottom;
op-c
object-position: center;
op-l
object-position: left;
op-lb
object-position: left bottom;
op-lt
object-position: left top;
op-r
object-position: right;
op-rb
object-position: right bottom;
op-rt
object-position: right top;
op-t
object-position: top;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:op-(value)
Small640px
md:op-(value)
Medium768px
lg:op-(value)
Large1024px
xxl:op-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:op-(value)