CSS Background-color Property

Reference on how to use the background property of CSS.

The css background-color property obviously sets the background-color of a given element.

Possible Values

To understand the many different values for color, Consult the Reference entry on Colors

Background-color example

This example sets the background for the body element, I.E. The intire site.

body {
  background-color: red;
}

Inherited? - NO!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.