The CSS background-attachment property specifies whether a background image should be fixed or scroll with the containing block.
| Syntax: |
background-attachment: <value>
|
| Possible Values: |
|
| Initial Value: |
Scroll
|
| Applies to: |
All elements
|
| Inherited: |
No
|
| Media: |
Visual
|
| Example |
background-attachment: fixed
|
| Try it yourself! |
|