May 2003
Intermediate to advanced
480 pages
10h 9m
English
By default, an element's background image (assigned with the background-image property) is aligned so that its top and left edges are flush with the top and left edges of the element (including any padding), respectively. With the background-position property, you can assign a different position for the image.
Inherited: No
See also: Section B.5background-image
One position specifier, or two position specifiers separated by a space.
Each of the position specifiers may be a CSS length measurement (pixels, points, ems, etc.), a percentage, or one of the constants from Table B-1.
| Vertical | Horizontal |
|---|---|
| top, center, bottom | left, center, right |
If you specify only one measurement ...
Read now
Unlock full access