CSS Background-attachment Property
Reference on the CSS Background-attachment Property.
The CSS Background-attachment Property sets the attachment of the background. It is often used to "fix" the background, instead of having it scroll together with the content.
Possible Values
- fixed
- scroll (Default)
background-attachment example
The following example first sets a background-image, and then sets its attachment to fixed.
body {
background-image: url("MyImage.png");
background-attachment: fixed;
}Inherited? - NO!