Css/Properties/background-color
< Css | Properties
background-color
The background-color property sets the background color of an element.
Description
Values | <color> | transparent | inherit |
---|---|
Initial value | transparent |
Applies to | All elements |
Inherited | No |
Values
<color>
transparent
If specified, the background color is transparent. This is default.
inherited
Example
Example A
[style.css]
body { colo: #fff; background-color: #666; }
CSS Reference
The CSS specification defines the background-color property in 14.2.1 Background properties.