HTML and CSS Reference
In-Depth Information
Name
background-color
Values:
<color>
Initial value:
transparent
Applies to:
All elements
Inherited:
No
Computed value:
Same as declared value
Description:
Defines a solid color for the background of the element. This color fills the box defined by
the value of background-clip —by default, the content, padding, and border areas of the ele-
ment, extending to the outer edge of the element's border. Borders that have transparent sec-
tions (such as dashed borders) will show the background color through the transparent sec-
tions in cases where the background color extends into the border area.
Examples:
h4 {background-color: white;}
p {background-color: rgba(50%,50%,50%,0.33);}
pre {background-color: #FF9;}
Search WWH ::




Custom Search