CSS property: background-attachment
For background images that are set behind an entire document as a property applied to the <body> element, the background-attachment property determines whether a background image is fixed and content scrolls over it, or whether the background scrolls with the content.
Property values
Value |
Description |
|---|---|
fixed |
This value indicates that the content scrolls, but the background image does not. |
scroll |
This value indicates that the background image scrolls with the content. |
inherit |
This value specifies that the element inherits the background-attachment property of the containing element. |
Parent topic: CSS Properties