baseline-shift
Used in SVG to move text vertically relative to its baseline. It's the primary way to create subscripts or superscripts within SVG text elements without changing font sizes.
It is documented as part of the CSS Inline specification.
Syntax
/* Usage Example */
text.exponent {
/* Shifts the text upward for mathematical powers */
baseline-shift: super;
font-size: 0.7em;
}
/* Syntax */
baseline-shift: sub;
baseline-shift: super;
baseline-shift: baseline;
/* Global values */
baseline-shift: inherit;
baseline-shift: initial;
baseline-shift: revert;
baseline-shift: revert-layer;
baseline-shift: unset;
baseline-shift Browser support
Widely available
Since
2015 94% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
1+
4+
79+