Object Position

Utilities for controlling the element's respond to the height and width of its content box.

Work in progress!

More detailed documentation is coming soon, but in the meantime here's a quick class reference.

Class reference

Class Properties
.object-bottom object-position: bottom;
.object-center object-position: center;
.object-left object-position: left;
.object-left-bottom object-position: left bottom;
.object-left-top object-position: left top;
.object-right object-position: right;
.object-right-bottom object-position: right bottom;
.object-right-top object-position: right top;
.object-top object-position: top;

Customizing

Responsive and State Variants

By default, no responsive, hover, focus, active, or group-hover variants are generated for object position utilities.

You can control which variants are generated for the object position utilities by modifying the objectPosition property in the modules section of your Tailwind config file.

For example, this config will generate responsive, hover and focus variants:

{
// ...
modules: {
    // ...
-   objectPosition: false,
+   objectPosition: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
}
}