How to control the size of input box in html forms? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to control the size of input box in html forms?

While working with html forms, when i create a input (type text/password) the blank box which is created is always of the same size... How can i control the size of this box?

24th Apr 2018, 4:43 AM
HMS
HMS - avatar
5 Answers
+ 5
<input type="text" style="width 300px; height: 45px; " />
24th Apr 2018, 4:56 AM
Adam
Adam - avatar
+ 4
Yeah, just set the width and height to whatever you would like
24th Apr 2018, 5:07 AM
cyk
cyk - avatar
+ 2
Thanks guys
24th Apr 2018, 5:12 AM
HMS
HMS - avatar
+ 2
হ্যালো ব্রো
28th Apr 2018, 6:01 PM
HMS
HMS - avatar
+ 1
হেলো☺
28th Apr 2018, 4:37 PM
Habib Rafi
Habib Rafi - avatar