Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

CSS background-color

Print Version

Also see the full, alphabetical list of CSS properties


The CSS background-color property is for setting the background color of an element.

Choose your colors quickly with the HTML color picker.

Syntax: background-color: <value>
Possible Values:
  • <color>
  • transparent
  • inherit
Initial Value: Transparent
Applies to: All elements
Inherited: No
Media: Visual
Example background-color:##ff9900
Try it yourself! HTML Editor


Also see all CSS properties listed alphabetically


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!