CSS Property: background-color
The background color of a box.
Possible Values
Value | Example |
---|---|
[color] | rgb(0,0,0) |
inherit | |
initial | |
unset |
Example
#dooberry { background-color: red; }
/* The background of the box of an element with the ID "dooberry" is painted red. */