Skip to Content


CSS Reference / background-color

background-color

Sets the background color of an element.

Values:

  • color-rgb
  • color-hex
  • color-name
  • transparent

Examples:

  1. background-color: black;
  2. background-color: #922;

Browser support:

  • Internet Explorer 3+
  • Netscape 4+
  • Opera 3.6+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here