background-position

The background-position property specifies the background image's initial position.

background-position: [ [ <percentage> | <length> | left | center | right ]
                       [ <percentage> | <length> | top | center | bottom ]? ] |
                     [ [ left | center | right ] || [ top | center | bottom ] ] | inherit
Initial: 0% 0%
Applies To: all elements
Inherited: no
Percentages: refer to the size of the box itself
Media: visual

DOM

Δ

[window.]document.getElementById("element-id").style.backgroundPosition = "background-position";

Example | bottom

Δ

Example | center

Δ

Example | left

Δ

Example | length

Δ

Example | percentage

Δ

Example | right

Δ

Example | top

Δ

Example | DOM

Δ

References

Δ