Description

Sets whether a background image scrolls with the page or is fixed in position while the content scrolls above it.
Fixed is applied to the viewport.

See also:

  • Background
  • Background (multiple)
  • Background Origin
  • Background Size
  • Background Position
  • Background Clip
Live Example
Play with the code in the textarea below.

Values
scroll, fixed
Default value
scroll
Introduced in CSS version
1
Inherited
No
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions71160.2

See the full list CSS properties and browser support: CSS Properties