css.properties

baseline-shift

The baseline-shift property shifts the baseline of an element relative to the parent baseline.

Formal Syntax

baseline-shift = <length-percentage> | sub | super | top | center | bottom <length-percentage> = [ <length> | <percentage> ]

See specification

JavaScript Access

// Access via element.style element.style.baselineShift = 0;

Browser Support

standard | Spec · Spec

FeatureChromeFirefoxSafariEdge
baseline-shift1479
baseline1479
sub1479
super1479

Related Properties