0

I have programmed a simple JavaScript Calculator, but I can't wrap my head around how to fit the Numbers into the Div-Box. And to be honest, I do not realy know what to google for. I tried.

Any help would be much appreciated!

https://imgur.com/a/u6yBc1v (The Calculator and the Problem)

HardReset
  • 9
  • 2

1 Answers1

0

You need to change the size of the font to make it smaller if it touches the end of the div. Refer to this question: JavaScript Scale Text to Fit in Fixed Div