CSS baseline-shift Property Reference

The CSS baseline-shift property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

CSS baseline-shift Property Reference

The CSS baseline-shift property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

baseline-shift overview

The CSS baseline-shift property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

baseline-shift formal syntax
FieldValue
Formal syntax<length-percentage> | sub | super | baseline
Initial value0
Applies toinlineLevelBoxesAndSVGTextContentElements
InheritedNo
PercentagesreferToTheUsedValueOfLineHeight
Computed valuetheSpecifiedKeywordOrAComputedLengthPercentageValue
Animation typebyComputedValueType
Medianone
Specification groupCSS Inline
StatusStandard

Practical examples

These declarations demonstrate valid ways to set baseline-shift. The initial and inherit global keywords remain available even when a property-specific value is preferable.

baseline-shift live example
CSS .reset-example { baseline-shift: initial; } .inherit-example { baseline-shift: inherit; } @supports (baseline-shift: initial) { .supported { baseline-shift: initial; } }

Description

The CSS baseline-shift property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: baseline-shift
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies