
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Backgrounds |
| Previous Style: background-attachment
| Next Style: background-image
|
background-color
Sets the background color of the element.
Support:
-
Notes:
Possible Values:
- [color]
The color of the background.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
-
Notes:
- transparent
No color is applied to the background.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
4.0 and later |
Example:
Use this property to <SPAN STYLE="background-color: Yellow">highlight text</SPAN>
or color your tables:
<TABLE CELLSPACING=0 BORDER=0>
<TR>
<TD STYLE="background-color: PaleTurquoise">Pale Turquoise</TD>
<TD STYLE="background-color: Turquoise">Turquoise</TD>
<TD STYLE="background-color: MediumTurquoise">Medium Turquoise</TD>
<TD STYLE="background-color: DarkTurquoise">Dark Turquoise</TD>
</TR>
</TABLE>
How It Looks:
- Use this property to highlight text
or color your tables:
Pale Turquoise |
Turquoise |
Medium Turquoise |
Dark Turquoise |
| Index
| Current Category: Backgrounds |
| Previous Style: background-attachment
| Next Style: background-image
|
|