Name
background-color
Values:
color name or RGB value
|transparent
Example:
P.warning { background-color: red }
Applies to:
All elements
Inherited:
No
Sets the background color of the element (creating a colored rectangle). The default is transparent.
Get Web Design in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.