Prev | Current Page 445 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

303).
The background of an element is the
Example
This style rule places a background-image
at a position that??™s 100 pixels from the left
and 200 pixels from the top of the element
with ID "example" :
#example{
background-position: 100px 200px;
}
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
The Ultimate CSS Reference 306
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 must be visible so that the background-image is able to
show through.


Pages:
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457