CSS · Properties — CSS Inline

vertical-align

The CSS vertical-align property. Initial value: baseline. Not inherited.

Syntax
vertical-align: baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>

Example

Try it

Notes

Media: visual. Applies to: asLonghands. Computed value: asLonghands.

More in this group

alignment-baseline baseline-shift baseline-source dominant-baseline initial-letter initial-letter-align text-box text-box-edge

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course