Skip to main content

Object Position

Utilities for controlling how a replaced element's content should be positioned within its container.

CSS Property:object-position
Classes:9

Object Position Classes

ClassCSS
object-bottomobject-position: bottom;
object-centerobject-position: center;
object-leftobject-position: left;
object-left-bottomobject-position: left bottom;
object-left-topobject-position: left top;
object-rightobject-position: right;
object-right-bottomobject-position: right bottom;
object-right-topobject-position: right top;
object-topobject-position: top;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

object-[center_top]object-[25%_75%]

Responsive Variants

Apply object position utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:object-bottom
768px+md:md:object-bottom
1024px+lg:lg:object-bottom
1280px+xl:xl:object-bottom
1536px+2xl:2xl:object-bottom