HomePlansOrderNetworkSupportManualsWeb ToolsAbout UsCornerstone HostingCornerstone Hosting
rib

CSS Index ~ CSS Structure ~ CSS Properties

Background Color

Syntax: background-color: <value>
Possible Values: <color> | transparent
Initial Value: transparent
Applies to: All elements
Inherited: No

The background-color property sets the background color of an element. For example:

BODY { background-color: white }
H1   { background-color: #000080 }

To help avoid conflicts with user style sheets, background-image should be specified whenever background-color is used. In most cases, background-image: none is suitable.

Authors may also use the shorthand background property, which is currently better supported than the background-color property.

 

CSS Index ~ CSS Structure ~ CSS Properties

Copyright © 1997 John Pozadzides and Liam Quinn. All rights reserved.


Home | Plans & Prices | Order Forms | Our Network | Customer Support | Online Manuals | Webmaster Tools | About Us
Acceptable Use Policy | Terms Of Service | Privacy Statement | Contact Us  
Copyright © 2002 Cornerstone Hosting All rights reserved.