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.

Property values

Value

Description

center

This value specifies that the width of the cell is adjusted to the content. For example, if a line of text is 40 pts in length, the cell is adjusted to a width of 40 pts plus any specified margin width.

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.

inherit

This value specifies that the element inherits the text-align property value from the containing element.

Index


Was this information helpful? Send us your comments.