Color and background

The following cascading style sheet properties apply to background styles and color.


  • background   Sets up to five separate background properties of the object.

  • background-attachment   Sets how the background image is attached to the object within the document.

  • background-color   Sets the color behind the content of the object.

  • background-image   Sets the background image of the object.

  • background-position   Sets the position of the background of the object.

  • background-repeat   Sets how the background-image property of the object is tiled.

  • color   Sets the color of the text of the object.

See also


Cascading style sheet reference
Properties by category
Properties by name

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.