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.

Community Additions