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.

/* 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;
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC