Prev | Current Page 458 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


The tiling and positioning of the background-image on inline elements isn??™t defined
in the CSS2.1 specification, but it might be addressed in future versions.
Value
?–  background-color sets the color of the background.
?–  background-image supplies the address of an image to be used on the background.
?–  background-repeat specifies whether a background-image is repeated (tiled)
or not, and also defines the axis along which the image will repeat.
?–  background-attachment determines whether the background-image is to scroll
with the document or remain fixed to the viewport (p. 141).
?–  background-position specifies the initial starting position of the
background-image.
Refer to the individual properties for their specific details, and the initial and
allowed values for each.
Compatibility
Color and Backgrounds
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Buggy Buggy Full Full Full Buggy Buggy Buggy
Internet Explorer for Windows versions up to and including 6 incorrectly implement
the value fixed for the property background-attachment and place the
background-image in relation to its containing block instead of the viewport.


Pages:
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470