| Syntax | selector {background-attachment: value;}
|
|---|---|
| Usage | The background-attachment property is used to specify whether the background will scroll with the web page or whether it will remain in a fixed position. This property is specified by using a keyword according to the syntax shown above. |
| Keywords |
|
| Applies To | All elements |
| Inherited | No |
| Initial Value | scroll |
![]() ![]() The background-attachment property is set using the keyword scroll.![]() ![]() The background-attachment property is set using the keyword fixed. |