Questions tagged
background-color
"background-color" is a CSS property used to define the background color of an element. Tag these questions with "css" also.

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

The background of an element is the total size of the element, including padding and border (but not the margin).

The possible values are:

  • transparent (this is the default value)
  • inherit (to specify the same value than the element's parent)
  • a valid CSS color value (#00FF00, red, rgb(0, 255, 0), etc.)

More information can be found on W3schools, the W3C website, and MDN.