How to auto resize input field according to its container ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to auto resize input field according to its container ?

Check my code https://code.sololearn.com/W7knFsG5chNx

6th Feb 2019, 8:42 PM
Praveen Soni
Praveen Soni - avatar
2 Answers
+ 3
//use %(example 50%/70%) with width & height so it will be sized with its parent elements input{ width:70%; }
6th Feb 2019, 8:50 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Shudarshan Rai 👑 Is it works when scaling an element
7th Feb 2019, 4:24 PM
Praveen Soni
Praveen Soni - avatar