Properties
CSS
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";
