I work on a pet project. As you can see by looking at the countdown, text moves a bit when numbers change due to the difference in symbol width. I want numbers to be fixed in place so they won't move anything.
At first I tried making font nums in the font monospaced, it worked but still if the font is to change then it will break.
Then I tried wrapping numbers in a span with fixed width but the catch is the website is adaptive and changes on viewport size so on smallers screens the font becomes smaller and fixed-size span doesn't work.
How can I dynamically calculate font width and add some extra space to the wrapping span to keep the numbers in place? Or maybe there are other approaches to handle this?