The Cascading Style Sheets background-attachment property is used to control how the background image will behave on the webpage. With CSS you can set the background image to move with the webpage as it scrolls (scroll) or to always remain visible as the page scrolls (fixed). Let's take a look at an example. Example
Selector
Property
Value
| ||||