Prev | Current Page 440 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

142)
303 Color and Backgrounds
background-repeat
background-repeat: { repeat | repeat-x | repeat-y |
no-repeat | inherit } ;
SPEC
version initial inherited
CSS1 repeat NO
BROWSER SUPPORT
Op9.2+ Saf3+ FF1+ IE5.5+
FULL FULL FULL FULL
Example
This style rule causes a background-image
assigned to the element with ID "example"
to repeat along the x axis:
#example{
background-repeat: repeat-x;
}
horizontal axes, and is repeated in both directions. We use the background-repeat
property to specify the axis along which an image should be repeated.
When a background image is repeated, it??™s first placed according to the
background-position property, and then begins repeating from that point in both
directions. For example, a background-image that??™s placed at a background-position
of center center (the center of the element), and which has a background-repeat
value of repeat, will repeat in both directions along the x and y axes??”that is, up
and down, left and right, starting from the center.


Pages:
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452