CSS: background color

By Xah Lee. Date: .

background color

background-color

Sets a solid color. The color lies under background image. The color is visible if background image has transparent spots.

default is transparent

.x {
 background-color: grey;
}

CSS. Background