Module background_position

Module background_position 

Source
Expand description

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

Class Properties
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

Any <position> property is allowed as arbitrary value. For example, bg-[position:0px_0px,bottom_12cm_right_-6px].

§Tailwind compatibility

When using arbitrary values, you must specify the position hint to disambiguate between this plugin and the background_size plugin. That’s not the case in Tailwind: background-position is preferred over background-size.

Tailwind reference