'background-position' Syntax and Note
Note:
Left and top coordinates of the background image.
If two values are provided,
the first value sets the horizontal position
the second value sets the vertical position.
If one value is provided,
only the horizontal position is set,
the vertical position will be set to 50 percent of the page height.
Syntax:
element { background-position: value }
elementID.style.backgroundPosition = "value"
document.all.elementID.style.backgroundPosition = "value" // IE only
Related examples in the same category