HTML5 input box width problem | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

HTML5 input box width problem

Why their is difference of width of input box and input button in HTML5 with same CSS properties. But this is not problem with HTML. https://code.sololearn.com/W86f7z8243VF/?ref=app https://code.sololearn.com/WBAzKQjG3JC2/?ref=app

6th May 2021, 10:52 AM
šŸŒ€ Shail Murtaza Ų“Ų¹ŪŒŁ„ Ł…Ų±ŲŖŲ¶ŪŒŁ°
šŸŒ€ Shail Murtaza Ų“Ų¹ŪŒŁ„ Ł…Ų±ŲŖŲ¶ŪŒŁ° - avatar
1 Resposta
+ 4
In HTML5, the width is differentiated to show the difference between a button and a text input. It is not found in the html because it is not focused at that time. Solution: Use box-sizing: border-box ; in the css. For the same width .
7th May 2021, 1:23 AM
Akash Singh
Akash Singh - avatar