'background-position' Syntax and Note : background position « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'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

1.'background-position' Example
2.'background-position' Possible Values
3.'background-position' is applied to