Prev | Current Page 438 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

If the element has no intrinsic height (either defined by its content
or dimensions), the background won??™t have any space in which to display. If an
element contains only floated children which haven??™t been cleared??”see clear
(p. 271)??”again, the background won??™t display, since the element??™s height will be
zero.
The Ultimate CSS Reference 302
By default, the background-image is placed at the top-left (background-position)
of the element; it??™s repeated along the x and y axes (background-repeat) and will
scroll with the document. These are the default settings that apply if you haven??™t
explicitly set any others, and can be adjusted with the other background properties.
Refer to the other relevant stuff below for methods you can use to position and
control the image.
Value
A URI value (p. 38) specifies a location at which the image can be found.
The value none ensures that no background-image will be displayed; this is the
default setting, so you don??™t need to define it explicitly unless you want to override
previous background-image declarations.


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