Introduction
The background-position CSS property sets the initial position for each background image. The position is relative to the position layer set by background-origin.
Examples

Syntax
Values
-
1-value syntax
- Keyword
center, which centers the image. - Keyword
top,left,bottom,right. This specifies an edge against which to place the item. The other dimension is then set to 50%, so the item is placed in the middle of the edge specified. <length>or<percentage>. This specifies the X coordinate relative to the left edge, with the Y coordinate set to 50%.
- Keyword
-
2-value syntax
- One of the keyword values
top,left,bottom,right. Ifleftorrightare given here, then this defines X and the other given value defines Y. Iftoporbottomare given, then this defines Y and the other value defines X. - A
<length>or<percentage>. If the other value is left or right, then this value defines Y, relative to the top edge. If the other value is top or bottom, then this value defines X, relative to the left edge. If both values are<length>or<percentage>values, then the first defines X and the second Y. - Note that: If one value is
toporbottom, then the other value may not betoporbottom. If one value isleftorright, then the other value may not beleftorright. This means, e.g., thattoptopandleftrightare not valid.
- One of the keyword values
-
Default value
left topor0% 0%
Formal definition
| Initial value | 0% 0% |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |
Formal Syntax
Difference between web
- Not support Global Value like
inherit、initialandunset. - Not support Edge offsets syntax like:
Compatibility
LCD tables only load in the browser