css.properties

background-position

The background-position property sets the starting position of a background image.

Formal Syntax

<bg-position>#

See specification

JavaScript Access

// Access via element.style
element.style.backgroundPosition = '0% 0%';

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
background-position11112
bottom11179
center11179
left11179
multiple_backgrounds13.61.312
right11179
side-relative_values2513712
top11179

Related Properties