Help Center

Local Navigation

CSS property: background

Availability

BlackBerry® Device Software version 3.8 or later

Usage

all elements

Inherited

no

Default value

The background property is a shorthand property used to set one or more of the background properties. Properties can be listed in any order.

Considerations

Do not set a background-attachment value unless you are applying the background property to the <body> element.

Values

Value

Description

[background-attachment] [background-color] [background-image] [background-position] [background-repeat]

This is a whitespace-separated list of values for the background-attachment, background-color, background-image, background-position, and background-repeat properties. You can set from one to five values. Properties can be listed in any order.

See the descriptions of the individual properties for more information about valid values.

Index


Was this information helpful? Send us your comments.