Background and foreground properties

Property

Value

Description

Support level

Availability

background

List of background properties

Specifies any or all background properties.

CSS 2.1

3.8 or later

background-attachment

scroll | fixed | local

Specifies whether the background scrolls with the page.

CSS 2.1

3.8 or later

background-color

Color

Specifies the background color for an element.

CSS 2.1

3.8 or later

background-image

URL | none

Specifies an image resource to use as the background.

Beginning with BlackBerry 6, the BlackBerry Browser supports multiple background images, and gradients or patterns as background images.

CSS 2.1

CSS 3

3.8 or later

background-position

Percentage | Length | left | center |

Specifies the starting position of a background image.

CSS 2.1

3.8 or later

background-repeat

repeat | repeat-x | repeat-y | no-repeat

Specifies how or if a background image is repeated.

CSS 2.1

3.8 or later

color

Color

Specifies the foreground color for an element.

Beginning with BlackBerry Device Software 5.0, the BlackBerry Browser supports HSV color values.

Beginning with BlackBerry 6, the BlackBerry Browser supports RGBa and HSVa color values.

css 2.1

CSS 3

3.8 or later

opacity

Alpha value

Specifies the opacity an element.

CSS 3

6.0 or later

-webkit-box-shadow

none | Shadow definition

Specifies a drop shadow effect for an element.

CSS 3

6.0 or later

-webkit-gradient

none | Gradient definition

Specifies a gradient, a gradual transition from one color to another. Gradients can be either linear, in which a color transitions along a defined axis; or radial, in which a color transitions from the center to the outer edge of a circle.

When the browser encounters a gradient definition, it uses the definition to create a gradient image. The resulting gradient image can be used anywhere that an image can be used, including as a background image, border image, list bullet image or a .

Not part of any standard

6.0 or later

Backgrounds & foregrounds | Box model | Fonts | Lists | Tables | Text | Visual effects | Visual formatting

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus