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

Usage

Center

Control how to position the content of a replaced element.

<div class="d-g g-1 gtc-3">
<img class="of-none op-lt w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-t w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-rt w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-l w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-c w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-r w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-lb w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-b w-24 h-24" src="/img/lighthouse.jpg" />
<img class="of-none op-rb w-24 h-24" src="/img/lighthouse.jpg" />
</div>

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:op-*
Small640px
md:op-*
Medium768px
lg:op-*
Large1024px
xxl:op-*
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-*