background-color | WebReference

background-color

Name: background-color

Description: Sets the background color for the element. Extends to, but not including, the margins.

Browser Compatibility: IE 4+ / NN 4+

Inherited: No

Values:

Code Example:

H1 {background-color: #9C9A9C;}

Comments: This property should be used in conjunction with the color property