Prev | Current Page 437 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Example
This style rule assigns a background image
to the element with ID "example" :
#example {
background-image:
??? url(images/bg.gif);
}
SPEC
version initial inherited
CSS1 none NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
The background of an element is the
area covered by the width and height of that element (whether those dimensions
are set explicitly, or the content dictates them); it also includes the area covered by
padding and borders. A background-color (or background-image) that??™s applied
to an element will appear beneath the foreground content of that element, and the
area covered by the padding and border properties for the element. This coverage
area is evident where an element has transparent (or dotted or dashed) borders,
and the background is seen beneath the borders (or between the dots). Note that
Internet Explorer versions up to and including 6 don??™t support transparent borders.
Some area of the element in question must be visible so that the background-image
can show through.


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