# vertical-align property

The `vertical-align` property sets a vertical alignment of text.

The property works only for `inline` elements, `inline-block` elements and for tables. It will not work for block elements.

## Syntax

`selector { vertical-align: bottom | top | middle | sub | super | baseline | text-bottom | text-top; }`

## Values

Value | Description
--- | ---
`bottom` | Bottom.
`top` | Top.
`middle` | Center.
`sub` | Subscript.
`super` | Superscript.
`baseline` | Baseline.
`text-bottom` | Very bottom of a line.
`text-top` | Very top of a line.

Default value: `middle`.

← →
↑
en ru