<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx" -->

---
title: Why your numbers look wrong | daily.dev
description: Dashboard numbers that jump on update, misaligned table columns, and oversized years in text aren't layout bugs - they're the font's default lining figures...
canonical: https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Why your numbers look wrong | daily.dev
og:description: Dashboard numbers that jump on update, misaligned table columns, and oversized years in text aren't layout bugs - they're the font's default lining figures...
og:url: https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx
og:image: https://api.daily.dev/og/posts/ubfdtPsXx.png
og:image:alt: Why your numbers look wrong
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Why your numbers look wrong

**[Creative Design Technologist](https://daily.dev/sources/carmenansio)** · [@carmenansio](https://daily.dev/carmenansio) · 8 min read · 8 upvotes · 0 comments

## Summary

Dashboard numbers that jump on update, misaligned table columns, and oversized years in text aren't layout bugs - they're the font's default lining figures showing through. Fonts typically ship a second, purpose-built set of number styles that browsers keep off until explicitly enabled via CSS. Four font-variant switches solve distinct problems: tabular-nums locks digit width so tables align and live numbers stop jittering; oldstyle-nums gives numbers ascenders/descenders so they sit quietly in running text instead of shouting like capitals; diagonal-fractions turns typed fractions like 1/2 into proper stacked glyphs instead of a division-looking sequence; and font-variant-caps: small-caps renders true small capitals for labels and units without the thin, faked look of shrunken uppercase text. All four are supported across Chrome, Firefox, and Safari since roughly 2016-2017. A catch: many Google Fonts variable-font builds strip out old-style figures, fractions, and small caps to save file size, so self-hosting a full font build is often required to make these switches actually work.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.carmenansio.com/articles/opentype-features-css>

## Questions this post answers

### why do my dashboard numbers jump around or shift position when they update

Default font digits use proportional spacing where a 1 takes less width than a 0, so when a value changes, the new digits don't match the old ones' width and the layout shifts. Applying font-variant-numeric: tabular-nums forces every digit to occupy one fixed width, so columns align into a clean edge and updating numbers like timers, stat counters, or streaming prices stop moving.

_daily.dev surfaces practical CSS fixes like this for developers polishing data-heavy interfaces._

### how do I stop numbers in a sentence from looking too large or shouting compared to the surrounding text

Apply font-variant-numeric: oldstyle-nums, which switches to old-style figures that have ascenders and descenders like lowercase letters instead of being uniformly capital-height. Digits like 6 and 8 rise while 3, 4, 5, 7, and 9 drop below the baseline, letting the numbers settle into the line rather than standing out like a run of capital letters.

_Developers refining typography details often track CSS techniques like this one on daily.dev._

### why doesn't font-variant-numeric oldstyle-nums or small-caps do anything when I apply it to a Google Fonts font

Most variable-font builds served by Google Fonts strip out old-style figures, fractions, and small caps entirely to reduce file size, so the glyphs simply don't exist in that font file even though the CSS syntax is correct. The fix is to self-host the full font build that retains those OpenType features rather than relying on the CDN-served variable font.

_Anyone debugging missing font features can find similar CSS gotchas curated on daily.dev._

## Similar posts on daily.dev

- [font-family Doesn’t Fall Back the Way You Think – CSS Wizardry](https://daily.dev/posts/font-family-doesn-t-fall-back-the-way-you-think-css-wizardry-73ewafsec) · CSS Wizardry · 9 upvotes · 1 comments
- [Testing Font Scaling For Accessibility With Figma Variables — Smashing Magazine](https://daily.dev/posts/testing-font-scaling-for-accessibility-with-figma-variables-smashing-magazine-kh7bchzym) · Smashing Magazine · 0 upvotes · 0 comments
- [Responsive and Fluid Typography with Baseline CSS Features](https://daily.dev/posts/responsive-and-fluid-typography-with-baseline-css-features-rnoepawxs) · OddBird · 4 upvotes · 0 comments
- [Taming Typography: Building a Modern CSS Reset](https://daily.dev/posts/taming-typography-building-a-modern-css-reset-6asn5tc0x) · CSS-Tricks · 34 upvotes · 1 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#typography](https://daily.dev/tags/typography)

[View this post on daily.dev](https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Why your numbers look wrong","url":"https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx"},"datePublished":"2026-09-16T18:25:05.071Z","dateModified":"2026-09-17T15:00:12.288Z","description":"Dashboard numbers that jump on update, misaligned table columns, and oversized years in text aren't layout bugs - they're the font's default lining figures...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f1fe8598bb218bdffa32352edf9846f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f1fe8598bb218bdffa32352edf9846f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Creative Design Technologist","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Carmen Ansio","url":"https://daily.dev/carmenansio","image":"https://media.daily.dev/image/upload/s--Sl7WLCAs--/f_auto/v1723634130/avatars/avatar_3IJIxchf5","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":100}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css,typography","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Creative Design Technologist","item":"https://daily.dev/sources/carmenansio"},{"@type":"ListItem","position":3,"name":"Why your numbers look wrong"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/why-your-numbers-look-wrong-ubfdtpsxx#faq","mainEntity":[{"@type":"Question","name":"why do my dashboard numbers jump around or shift position when they update","acceptedAnswer":{"@type":"Answer","text":"Default font digits use proportional spacing where a 1 takes less width than a 0, so when a value changes, the new digits don't match the old ones' width and the layout shifts. Applying font-variant-numeric: tabular-nums forces every digit to occupy one fixed width, so columns align into a clean edge and updating numbers like timers, stat counters, or streaming prices stop moving. daily.dev surfaces practical CSS fixes like this for developers polishing data-heavy interfaces."}},{"@type":"Question","name":"how do I stop numbers in a sentence from looking too large or shouting compared to the surrounding text","acceptedAnswer":{"@type":"Answer","text":"Apply font-variant-numeric: oldstyle-nums, which switches to old-style figures that have ascenders and descenders like lowercase letters instead of being uniformly capital-height. Digits like 6 and 8 rise while 3, 4, 5, 7, and 9 drop below the baseline, letting the numbers settle into the line rather than standing out like a run of capital letters. Developers refining typography details often track CSS techniques like this one on daily.dev."}},{"@type":"Question","name":"why doesn't font-variant-numeric oldstyle-nums or small-caps do anything when I apply it to a Google Fonts font","acceptedAnswer":{"@type":"Answer","text":"Most variable-font builds served by Google Fonts strip out old-style figures, fractions, and small caps entirely to reduce file size, so the glyphs simply don't exist in that font file even though the CSS syntax is correct. The fix is to self-host the full font build that retains those OpenType features rather than relying on the CDN-served variable font. Anyone debugging missing font features can find similar CSS gotchas curated on daily.dev."}}]}
```

