The alignment-baseline property specifies which baseline of the box is used to align it (before baseline-shift) to the corresponding baseline of its context. Applies to inline boxes, flex/grid items, table cells, and SVG text elements..superscript {
alignment-baseline: text-top;
}tspan {
alignment-baseline: mathematical;
}baselineThe default value. Uses parent's dominant baseline.text-bottomText-under baselines.alphabeticAlphabetic baselines.ideographicIdeographic-under baselines.middleX-middle baselines.centralCentral baselines.mathematicalMath baselines.text-topText-over baselines.hangingHanging baselines — useful for scripts such as Devanagari.text-before-edgeLegacy alias for text-top — text-over baselines.text-after-edgeLegacy alias for text-bottom — text-under baselines.CSS Inline Layout Module Level 3Editor's DraftW3CMDNShow all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext