property

font-variant-position — CSS reference

Requests font-provided or synthesized subscript/superscript glyph positioning. Initial normal; inherited. Unlike vertical-align, this is a typography feature; use semantic sub and sup markup where the content requires it.

Formal Syntax & Structure

css syntaxcss
normal | sub | super

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-variant-position:super}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference