Color and Background

background-attachment

Specifies how the background image behaves when the user scrolls the page. The image either scrolls along with the content(default), or remains in one place. Notice that in IE6 and earlier this property works only for the body element.

Example

background-attachment: fixed;

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

fixed Locks the image in place.
inherit The property uses the same value as the same property of the parent element.
scroll Normal behavior, the image will scroll along with the text.

Related properties

Can be used with..

Search the Soup!