HTML Background Attachment Property
The background-attachment
property in CSS is used to specify whether a background image should scroll with the content or remain fixed as the page is scrolled.
Syntax
background-attachment: scroll|fixed|local|initial|inherit;
scroll
: The background image scrolls along with the content.fixed
: The background image remains fixed in place while the content scrolls.local
: The background image scrolls with the element's contents, rather than the entire page.initial
: Sets the property to its default value.inherit
: Inherits the property from its parent element.