alignment-baseline
Newly availableSince 202696% of users
Controls how an inline-level element (usually SVG text) aligns itself with the vertical baseline of its parent. It's essentially the 'vertical-align' for SVG text.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2026. Widely available around September 2028.
Newer parts of alignment-baseline
alphabeticBaseline Jul 2026centralBaseline Jul 2026ideographicBaseline Jul 2026mathematicalBaseline Jul 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
baseline- Inherited
- No
- Applies to
- inline-level boxes, flex items, grid items, table cells, and SVG text content elements
- Animation type
- discrete
Quick example
text {
/* Aligns the text to its mathematical center */
alignment-baseline: central;
}Values
baselinealphabeticideographicmiddlecentralmathematicaltext-before-edgetext-after-edgealignment-baseline browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage96%of people can use this4% use a browser without it.
Browsers
1+
149+
5.1+
79+Mobile
18+Android
149+Android
5+iOS