# Property Description

The background shorthand property sets all of the background properties in one declaration and is composed of the `background-color`, `background-image`, `background-repeat`, `background-attachment`, and `background-position`.

Note: Any values not specified are set to their default properties.

# Property Values

Value | Description
--- | ---
background-color | Sets the background color to be used. See `background-color` for possible values
background-image | Sets the background image to be used. See `background-image` for possible values
background-repeat | Sets how to repeat the background image. See `background-repeat` for possible values
background-attachment | Sets whether a background image is fixed or scrolls with the rest of the page. See `background-attachment` for possible values
background-position | Sets the position of the background image. See `background-position` for possible values
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example shows how to specify all the background properties in one declaration.

    body {
      background:
        #00ff00 url('bg-image.gif')
        no-repeat fixed center;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS1