My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-css, is-css-property, from-w3c
BackgroundColorCSSProperty  
The background-color property sets the background color of an element.

You are here: Home > CSS Reference > Properties > background-color

Usage

Values

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
style.backgroundColor reflects <div style='background-color: #808080'> N N N Y Y Y Y Y
style.backgroundColor reflects <div style='background-color: black'> N N N Y Y Y Y Y
style.backgroundColor reflects <div style='background-color: rgb(0, 0, 0)'> Y Y Y N N N Y N
style.backgroundColor reflects <div style='background-color: transparent'> Y Y Y Y Y N Y N

Further reading


Sign in to add a comment
Hosted by Google Code