The background-attachment property sets whether the background image will scroll along with the element's content. The image can be fixed and remain still, or move along with the document.


background-attachment: fixed | scroll | inherit

fixed - Makes the element's background image static.

scroll - Allows the background to move along with the content.

inherit - Inherits the value of the parent.