B.3. background-attachment

This property determines whether the background image assigned to an element scrolls in sync with the element's content or remains fixed in relation to the browser window. For example, if you wanted the top-left corner of your page background image to remain in the top-left corner of the browser window, even as the page was scrolled, you would set background-attachment to fixed.

Inherited: No

See also: Section B.5background-image

B.3.1. Value

fixed or scroll

Initial value: scroll

B.3.2. Compatibility

CSS Version: 1

Supported by Internet Explorer 4 or later, Netscape 6 or later, Opera 5 or later, and all Mozilla browsers.

Internet Explorer for Windows (at least up to version 6) and Opera browsers (up to version 6), ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.