background-colorNN 4   IE 4   CSS 1
 Inherited: No
 

Sets the background color for the element. Although it may appear as though a nested element's background-color attribute is inherited, in truth the initial value is transparent, which lets the next outermost colored element show through whitespace of the current element.

 
CSS Syntax
background-color: color
 
JavaScript Equivalent
backgroundColor
 
Value
Any valid color specification (see description at beginning of the chapter) or transparent.
 
Initial Value
transparent
 
Example
.highlighter {background-color: yellow}
 
Applies To
All elements.
 
Object Model Reference
IE [window.]document.all.elementID.style.backgroundColor
Hosted by uCoz