position

fun position(value: BackgroundPositions.() -> BackgroundPositionProperty)

This function is used to set the background-position property. Predefined values are offered by BackgroundPositions.

This functions only sets one value.

Example call

background {
position { right }
}

If you want to specify both dimensions independently, use the positions function in order to open a nested scope.

See also

Parameters

value

extension function parameter to bring the predefined position values in BackgroundPositionProperty into the scope of the functional expression