BACKGROUND-ATTACHMENT Property In CSS

background-attachment Property in CSS

background-attachment property Declares the attachment of a background image (to scroll with the page content or be in a fixed position).

Possible Value:

fixed scroll

Example

div { background-attachment:fixed; } div { background-attachment:scroll; }