How can I have a fixed-size circle surrounding a variable sized number, which gets smaller if it doesn't fit in the circle?
I was looking at How to use CSS to surround a number with a circle? which is fairly similar to my problem. My issue arises with larger numbers, where the number would overflow the surrounding circle. The font-size of the number has to shrink in that case.
I don't want to use JavaScript for the task. However, I do consider a SVG.