CSS property: background-color

Description

This property sets the background color of an element. The color is drawn behind any background images.

Syntax

background-color: <color> | transparent;

Values

transparent (by default)
The background is transparent.
<color>
The color value. Colors can be specified with a constant, an RGB value, or a hexadecimal value.

Versions