Full version, Basic version

Specification link: 10.9 Alignment properties

text-align-01-b ← index → text-align-03-b

# text-align-02-b
SVG Image | PNG Image
text-align-02-b Test the 'baseline-shift' property (horizontal). Test 'baseline-shift' (horizontal) Normalbaseline-shift:7text Normalbaseline-shift:-70%text Normalsub super text $Revision: 1.5 $ |

Test the 'baseline-shift' property (horizontal).

This three lines test property 'baseline-shift'. The first line tests 'baseline-shift:7' (i.e., a length for 'baseline-shift'). The red text should shift upward by 7 pixels. The second line tests 'baseline-shift:-70%' (i.e., a percentage for 'baseline-shift'). The red text should shift downward by 70% of the 'font-size'. The third line tests the three keywords 'sub', 'super' and 'normal'. You should see a subscript, superscript and return to normal.

text-align-01-b ← index → text-align-03-b