Prev | Current Page 435 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

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 if the background-color is to
show through. If the element has no intrinsic height (defined either by its content
or its dimensions), the background will not be seen. If an element contains only
floated children which haven??™t been cleared??”see clear (p. 271)??”then again the
background won??™t show, as the element??™s height will be zero.
Value
color takes any valid CSS color value or color keyword.
The keyword transparent sets the background-color to be transparent. This value
ensures that the content of any element that??™s beneath the current element will be
visible through the transparent background. The default for background-color is
transparent, so there is no need to specify this value unless you??™re overwriting
previous definitions.


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