On the question of digital bytes

1. When doing a countdown effect in the chrome browser, xx days xx hours xx minutes xx seconds, written directly in a div, the attribute text-align: center;
finds that there is a slight misalignment with other numbers 0, 2-6, 8-9 when 1 and 7 appear.
2. Finally, I withheld the numbers separately and put them in the span tag. The outer div assigned the flex attribute to solve

.

I would like to ask if all the bytes of a number are 1 byte, and why is this deviation?

Feb.18,2022

what font do you use?


numbers use equal width fonts

Menu