Text

vertical-align

Defines the baseline position of an inline element relative to the baseline of the surrounding contents. A specific character can be made to appear slightly above or bellow the rest of the text. The percentage value is based on the elements line-heigh value.

Example

vertical-alight: text-top;

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

baseline Default value.
bottom Aligns to the bottom of the line.
em Relative length value. A em unit is equal to the font-size value of the element used.
middle Aligns to the middle.
Percentage value The regular format of a percentage value.
px Pixel, a pixel unit represents a single dot on the screen.
text-bottom Aligns to the bottom of the font line.
text-top Aligns to the top of the font line.
top Aligns to the top of the line.

Related properties

Can be used with..

Search the Soup!