Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 660 Bytes

background-color.md

File metadata and controls

21 lines (16 loc) · 660 Bytes

background-color

The background-color CSS property sets the background color of an element.

Values

<color>
The uniform color of the background. It is rendered behind any background-image that is specified, although the color will still be visible through any transparency in the image.

Examples

background-color="red"
background-color="indigo"
background-color="#bbff00"    /* Fully opaque */
background-color="#bf0"       /* Fully opaque shorthand */
background-color="rgb(255, 255, 128)"        /* Fully opaque */
background-color="rgba(117, 190, 218, 0.5)"  /* 50% transparent */