Skip to main content

Background Position

Utilities for controlling the position of an element's background image.

CSS Property:background-position
Classes:9

Background Position Classes

ClassCSS
bg-bottombackground-position: bottom;
bg-centerbackground-position: center;
bg-leftbackground-position: left;
bg-left-bottombackground-position: left bottom;
bg-left-topbackground-position: left top;
bg-rightbackground-position: right;
bg-right-bottombackground-position: right bottom;
bg-right-topbackground-position: right top;
bg-topbackground-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.

[background-position:value]

Responsive Variants

Apply background position utilities at specific breakpoints using responsive prefixes.

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