HTML and CSS Reference
In-Depth Information
background-image
Used to specify a background image at a specified URL as the background for an element.
Value:
<url> | none
Initial value:
none
Inherited: No
Applies to: All elements
Supported by: Firefox, Safari, Opera, Internet Explorer
background-position
Used to specify the initial position of a background image.
Value: A horizontal position value followed by a vertical position value. Both are specified
by:
<length> | <percentage> | <position keyword>
Initial value:
0 0
Inherited: No
Applies to: All elements
Supported by: Firefox, Safari, Opera, Internet Explorer
■
Note
Percentages are used to determine points both in the element and the background image. The
image is placed so that both points match. For example, a value of
50% 50%
would result in a background
image whose center is lined up with the center of the element's box.
background-repeat
Determines whether the background image is repeated in the element, and if so, how.
Value:
repeat | repeat-x | repeat-y | no-repeat
Initial value:
repeat
Inherited: No
Applies to: All elements
Supported by: Firefox, Safari, Opera, Internet Explorer
Lists
The following properties can be used to style lists.