Home·CSS properties

font-variant-numeric

Text

Picks a numeral style; tabular-nums keeps digits the same width so tables stop jittering.

How to write itfont-variant-numeric: normal;
Common valuesnormal, tabular-nums
InheritedYes — children receive it
CategoryText

How to read this

  • An inherited property only needs writing once on the parent — every child picks it up. Most text properties work this way.
  • A shorthand resets whatever you leave out. Writing background: red alone also wipes a background image you set earlier.
  • When rules collide, the more specific selector wins; only when specificity ties does source order decide.
  • Animate transform and opacity for smoothness. Changing width or top forces the layout to be recalculated.

Frequently asked questions

Q. What is the CSS font-variant-numeric property?

Picks a numeral style; tabular-nums keeps digits the same width so tables stop jittering.

Q. How do you write font-variant-numeric?

As font-variant-numeric: normal; Common values include normal, tabular-nums.

Q. Is font-variant-numeric inherited?

Yes. Set it once on the parent and every child uses the same value without repeating it.

Q. What group does font-variant-numeric belong to?

The text group.

Properties in the same group

Reference docs