May 2000
Intermediate to advanced
472 pages
14h 17m
English
background-position — IE4 Y/Y | IE5 Y/Y | NN4 N/N | Op3 Y/-
This sets
the starting position of a background image (defined by the value of
background-image).
background-position is used to set the origin of
the background’s tiling, or its position if there is no tiling.
Percentage values define not only a point within the element, but
also the same point in the origin image itself; see Chapter 6 for more details.
BODY {background-position: top center;}[<percentage> | <length>]{1,2} | [top | center | bottom] || [left | center | right] |
0% 0%
no
block-level and replaced
Percentage values refer to the size of the element itself as well as the size of the origin image.
Read now
Unlock full access