Hello to all. Sorry in advance for my bad english. My question is: I wrote a simple numpad on HTML (like a phone caller). How can I set the overflow of the numbers in the display, precisely in the height? When I continue to write numbers in the numpad, the numbers exceed and go outside the div, outside the display. How can I set this? Thank you all.
2/17/2018 2:05:41 AM
Andrea Saccone18 Answers
New AnswerI think I solved the problem. I put overflow:hidden on css and when I write numbers on numpad they stops before the div and don't exceed
It 'should' calculate on all digits. The only error I can see occurring is if you exceed the maximum size of the variable type you are using.
@Andrea; is this the code? https://code.sololearn.com/WDXsvoE0cvWU/?ref=app For future reference: You can get the link by clicking the symbol that looks like < when your code is open.
Thank you Jay, yes it is! I have one doubt left. In case I have a calculator instead of a numpad : if I set the overflow:hidden and I continue to write numbers, it will calculate also the exceeded numbers or only visible numbers?
Hi Andrea, it would be better if you provide a code. Try using: overflow-wrap:break-word; word-wrap:break-word;
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message