CSS · Properties — CSS Inline

baseline-shift

The CSS baseline-shift property. Initial value: 0. Not inherited.

Syntax
baseline-shift: <length-percentage> | sub | super | baseline

Example

Try it

Notes

Media: none. Applies to: inlineLevelBoxesAndSVGTextContentElements. Computed value: theSpecifiedKeywordOrAComputedLengthPercentageValue.

More in this group

alignment-baseline baseline-source dominant-baseline initial-letter initial-letter-align text-box text-box-edge text-box-trim

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course