{ BACKGROUND-POSITION :
[ PERCENTAGE |
LENGTH ] |
[ [ TOP |
CENTER |
BOTTOM ] &|
[ LEFT |
CENTER |
RIGHT ] ] }
Inherited: No
The BACKGROUND-POSITION property allows you to determine the initial
position of a background image.
You can use any combination of a PERCENTAGE or a LENGTH.
Alternately, you can use one of the keywords [TOP, CENTER, BOTTOM]
and/or one of the keywords [LEFT, RIGHT, CENTER] to define the position.
You cannot mix the keywords with PERCENTAGE or LENGTH.
[ PERCENTAGE &|
LENGTH ]
The PERCENTAGE value is usually listed as a pair of values.
Place a blank (white) space between the pair of percents.
The first PERCENTAGE in the pair refers to the horizontal axis and the
second PERCENTAGE to the vertical axis. 0% 0% is defined as the left
top corner and 100% 100% as the right bottom corner. If you only give
one PERCENTAGE, it will only set the horizontal axis and the vertical axis is
defaulted to 50%.
Other examples of percentage pairs: