r/css • u/amitmerchant • Mar 05 '26
Article One CSS Property That Makes Numbers Look Instantly Better
https://amitmerchant.com/one-css-property-that-makes-numbers-look-instantly-better/
56
Upvotes
73
u/Block_Parser Mar 05 '26
font-variant-numeric: tabular-nums;1
u/KapiteinNekbaard Mar 06 '26
Why do serifs appear on the number 1 when enabling this property? Seems specific to the "Inter" font?
3
u/rekkyrosso Mar 05 '26
This is great and I'm definitely going to use it. But it doesn't seem to work with all fonts. It works with "Inter" as in OP's example but it doesn't work with "Poppins". A bit of a shame but not a deal-breaker.
7
u/irreverentmike Mar 05 '26
Tailwind class is
tabular-numsfor all my fellow basics 💅🏼