Color and Background

background-color

Sets a color to the background of an element. This color sits behind the border and the background image.

Example

background-color: #FFF;

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

Color keyword One of the 17 recognized color keywords; aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white and yellow.
Hex color Three two-character numbers in the hexadecimal system(base 16)
Percentage value The regular format of a percentage value.
RGB decimal Use RGB values from 0 to 255; rgb(255, 0, 333).
RGB percentage Specify a color using percentage values: rgb(100%, 0%, 33%).
transparent Sets no color value.

Related properties

Can be used with..

Search the Soup!