Help Center

Local Navigation

CSS property: vertical-align

Availability

BlackBerry® Device Software version 4.6 or later

Usage

any positioned element

Inherited

no

Default value

baseline

The vertical-align property specifies the vertical alignment of an element.

Values

Value

Description

length

This value specifies the distance that the BlackBerry® Browser raises (positive value) or lowers (negative value) the baseline as an absolute value. The value can be an integer with the unit of measurement. For example, “10pt” or “6px”. Negative values are permitted.

Possible units include pt, px, in, cm, pc, em, or ex.

percentage

This value specifies the distance as a percentage of the width of the containing element. Negative values are permitted.

baseline

This value specifies that the BlackBerry Browser determines the position of the top edge of the element.

bottom

This value specifies that the bottom of the element is aligned with the bottom of the lowest element on the line.

middle

This value specifies that the element is placed in the middle of the element.

sub

This value specifies that the baseline is aligned to the normal position for subscript text.

super

This value specifies that the baseline is aligned to the normal position for superscript text.

text-bottom

This value specifies that the bottom of the element is aligned with the bottom of the parent’s element.

text-top

This value specifies that the top of the element is aligned with the top of the parent’s element.

top

This value specifies that the top of the element is aligned with the tallest element on the line.

Index


Was this information helpful? Send us your comments.