Help Center

Local Navigation

CSS property: background-attachment

Availability

BlackBerry® Device Software version 3.8 or later

Usage

All elements

Inherited

No

Default value

scroll

For background images that are set behind an entire document as a property applied to the <body> element, the background-attachment property determines whether a background image is fixed and content scrolls over it, or whether the background scrolls with the content.

Property values

Value

Description

fixed

This value indicates that the content scrolls, but the background image does not.

scroll

This value indicates that the background image scrolls with the content.

inherit

This value specifies that the element inherits the background-attachment property of the containing element.

Index


Was this information helpful? Send us your comments.