Help Center

Local Navigation

CSS property: text-align

Availability

BlackBerry® Device Software version 3.8 or later

Usage

block-level elements, table cells, and inline blocks

Inherited

yes

Default value

left, if the text direction is left-to-right

right, if the text direction is right-to-left

The text-align property specifies the horizontal alignment of text.

Values

Value

Description

center

This value specifies that text is centered in the containing block.

justify

This value specifies that text is made to be flush to both sides of the element’s containing block.

left

This value specifies is aligned to the left of the element’s containing block.

right

This value specifies that text is aligned to the right of the element’s containing block.

Index


Was this information helpful? Send us your comments.