[Javascript] Dom rollover
Paul Novitski
paul at juniperwebcraft.com
Thu Sep 28 22:15:20 CDT 2006
At 9/28/2006 06:30 PM, David Hucklesby wrote:
>Umm. Not so. The background-color property is one of the few that
>do *not* inherit. If unassigned, background-color defaults to
>transparent, allowing background colors and images set on enclosing
>elements to show through. Think about it. A background image set on
>the BODY appears in all places unless another background overlays it.
You are so right:
CSS 2.1 Specification
14 Colors and Backgrounds
14.2 The background
http://www.w3.org/TR/CSS21/colors.html
"Background properties are not inherited, but the parent box's
background will shine through by default because of the initial
'transparent' value on 'background-color'."
Standing corrected,
Paul
More information about the Javascript
mailing list