property
Alignment baseline — CSS reference
Selects the baseline used to align a participating box or SVG text run with its alignment context. For example, middle aligns using the parent baseline and x-height relationship, rather than centering the whole bounding box. This SVG example changes a text run; it is not a general block-centering property.
Formal Syntax & Structure
css syntaxcss
alignment-baseline: middle;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>alignment-baseline</title><style>body{margin:8px;font:16px/24px sans-serif}#b{alignment-baseline:middle}</style><body><svg width="300" height="100" viewBox="0 0 300 100"><text id="a" x="10" y="50" font-size="24">Base<tspan id="b">Sample</tspan></text></svg></body></html>