CSS Baseline-Shift Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

This property allows repositioning of the dominant-baseline relative to the dominant-baseline. The shifted object might be a sub- or superscript. Within the shifted element, the whole baseline table is offset; not just a single baseline. For sub- and superscript, the amount of offset is determined from the nominal font of the parent.

Syntax

baseline-shift: [value];

Possible values

  • baseline
  • sub
  • super
  • [percentage]
  • [length]

Initial Value

baseline

Applies To

Inline-Level elements

Inherited

No

Media

Visual

Example

.img {
  baseline-shift: sub;
}


View All CSS Properties