Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Dom rollover


  • From: paul at juniperwebcraft.com (Paul Novitski)
  • Subject: [Javascript] Dom rollover
  • Date: Thu Sep 28 22:16:18 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