CSS vertical-align Property Explained

What the CSS vertical-align property does, with an example.

Published November 7, 2026

The CSS vertical-align property aligns inline or table-cell elements vertically relative to their line or row.

Key points

  • Check browser compatibility on a resource like caniuse.com if targeting older browsers

Example

vertical-align: middle;
More CSS articles