CSS Properties

User Guide / CSS Reference / CSS Properties

background-attachment

Syntax

background-attachment: scroll | fixed

Default

scroll

Inherited

No

Comments

The background-attachment property determines the origin of the coordinate system for background images. The default value of scroll will position background images based on an origin at the top-left corner of the padding area of the current element, while a value of fixed places the origin at the top-left corner of the page box.

Note that the background-attachment property only changes the origin of the coordinate system used to position the image; the background image will still only be shown within the padding area of the current element.