Difference between revisions of "Background-color"

From Htmlpedia
Jump to: navigation, search
 
Line 14: Line 14:
  
 
* W3C Specification: [http://www.w3.org/TR/CSS1 CSS Specification Level 1]
 
* W3C Specification: [http://www.w3.org/TR/CSS1 CSS Specification Level 1]
 +
* HTMLpedia: [[List of CSS Properties]]
 
* HTMLpedia: [[CSS Color Values]]
 
* HTMLpedia: [[CSS Color Values]]

Revision as of 23:55, 11 November 2006

CSS property: background-color

The background-color property sets the background color of the text in the selected elements.

Example

Good
<style type="text/css">
     a { background-color: green; }
</style>
...
<a href="http://www.example.com/">Black link on a green background</a>

References