webmonkey

 

background-color

Page history last edited by Ginelle 2 yrs ago

Definition

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

 

Inherited: No

 

You also have control over how the background image is displayed. You may choose to have it repeat horizontally, vertically, or in neither direction. You may also choose to have the background remain in a fixed position, or have it scroll as it does normally.

 

http://www.tizag.com/cssT/background.php

 

-Ginelle

 

Possible Values

color

transparent

 

Example

p

{

background-color: #00FF00

}

div

{

background-color: #66CDAA

}

 

 

 

Example:

 

If you wanted to place a background color on the entire document under the