Style sheets and CSS support

The BlackBerry® Browser supports inline, internal, or external CSS style definitions.

The level of support for style sheets in the BlackBerry Browser depends on the version of BlackBerry® Device Software that the BlackBerry device is running.

BlackBerry Device Software version

Description

3.8 to 4.5

In BlackBerry Device Software version 3.8 to 4.5, the BlackBerry Browser provides partial support for WAP CSS.

The BlackBerry Browser supports the following CSS models:

  • Box model
    • Border properties (introduced in BlackBerry Device Software version 3.8)
    • Padding properties (introduced in BlackBerry Device Software version 4.3)
  • Colors and background
  • Fonts (excluding font-variant)
  • Positioning
    • The height and width properties (introduced in BlackBerry Device Software version 3.8)
  • Text (text-align, text-decoration properties only)
  • WAP marquee extensions
  • WAP input extensions

In BlackBerry Device Software version 4.5 or earlier, users can turn off support for style sheets in the BlackBerry Browser options, which prevents the BlackBerry Browser from processing any style data, whether inline, internal, or external.

4.6 or later

In BlackBerry Device Software version 4.6, the BlackBerry Browser provides full support for CSS 2.1, excluding pseudo-elements and dynamic pseudo-classes, system fonts, and generated content.

The BlackBerry Browser supports the following CSS models:

  • Box model
    • Border properties
    • Margin properties
    • Padding properties
  • Colors and background
  • Fonts
  • Lists
  • Positioning
  • Text
  • Visual effects
  • WAP input extensions

With enhanced CSS support and access to the DOM using JavaScript®, the BlackBerry Browser supports most dynamic HTML effects, such as hiding or displaying web page content dynamically.

In BlackBerry Device Software version 4.6 or later, users can not specify support for style sheets; style sheets are always supported.

Index


Was this information helpful? Send us your comments.