# Property Description

The background-attachment property sets whether a background image is fixed or scrolls with the document.

# Property Values

Value | Description
--- | ---
scroll | (default) The background image scrolls with the document
fixed | The background image is fixed
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example shows how to specify a fixed background-image.

    body {
      background-image:
        url('bg-image.gif');
      background-repeat:no-repeat;
      background-attachment:fixed;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS1