Last updated on : 2022-04-10
background-attachment defines how a background image will be displayed when the content is scrolled. Values include scroll, fixed, and local.
Inherited
no
Applies to
all elements. It also applies to ::first-letter and ::first-line.
Initial value
scroll
Animation type
discrete
Computed value
as specified
CSS Backgrounds and Borders Module Level 4 # the-background-attachment
/* Keyword values */
background-attachment: scroll;
background-attachment: fixed;
background-attachment: local;
/* Global values */
background-attachment: inherit;
background-attachment: initial;
background-attachment: revert;
background-attachment: unset;
Browser Support For Safari on iOS Versions
Browser Support For Android Browser Versions
Browser Support For Opera Mobile Versions
Browser Support For Chrome for Android Versions
Browser Support For Firefox for Android Versions
Browser Support For Samsung Internet Versions
Test your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for CSS background-attachment and many more web technologies that are a part of your website or web-application.
Last Modified date
2022-04-10
Data sourced from
Test this and other features on your website for compatibility across
3,000 real browsers and devices using
I hope we're able to help you build browser compatible web experience.
Fast track your browser testing experience on 3000+ browsers and OS combinations with LambdaTest.
Sarah Elson (Product & Growth Lead)