The baseline-shift property raises or lowers an element relative to its parent's baseline. A positive length/percentage raises, negative lowers. Percentages are relative to the parent's line-height. Used for superscript/subscript on inline elements and SVG text..note {
baseline-shift: super;
}.math {
baseline-shift: -0.25em;
}min:-9999max:9999step:1units:% | px | em | rem | vw | vh | vmin | vmax | ptsubLowers by the subscript offset (default: about 1/5 of the parent's font-size).superRaises by the superscript offset (default: about 1/3 of the parent's font-size).topAligns the line-over edge of the aligned subtree with the line box edge.centerAligns the center of the aligned subtree with the line box center.bottomAligns the line-under edge of the aligned subtree with the line box edge.baselineNo shift is applied; the element's baseline aligns with the parent's baseline.CSS Inline Layout Module Level 3Editor's Draft<length-percentage>W3CMDNShow all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationvalue typessourcesvisual demonstrationpreviousnext