CSS background attachment Property
CSS background-attachment Property
The background-attachment property is used to determine whether a background image scrolls with the rest of the page or is fixed.
Its default value is scroll.
Its syntax is:- background-attachment: scroll | fixed | local | initial | inherit;
|The background image will scroll with the page.
|The background image will not scroll with the page
|The background image will scroll with the element's contents
|Sets this property to its default value.
|Inherits this property from its parent element.