I am trying to change the styling of numbers.
I suggest to use display:flex
so that the "sep" character is in auto-determined font-size
.
The idea is that turn 1000 1000
into
by js.
Then, add "sep" character visually by css generated content. span:nth-last-of-type(3n) { content:
. This way, the
(can be any character actually) will have same font-size as number text.
demo