Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the size of an HTML text box?

Tags:

css

How do I set the size of an HTML text box?

like image 259
user225269 Avatar asked Jan 24 '10 01:01

user225269


People also ask

How do you change the size of a TextBox in HTML?

If you simply want to specify the height and font size, use CSS or style attributes, e.g. //in your CSS file or <style> tag #textboxid { height:200px; font-size:14pt; } <!

How do I change the size of a TextBox?

To resize a shape, text box, or WordArt, under Drawing Tools, on the Format tab, in the Size group, enter the measurements that you want into the Height and Width boxes.


1 Answers

Just use:

textarea {     width: 200px; } 

or

input[type="text"] {     width: 200px; } 

Depending on what you mean by 'textbox'.

like image 108
Rowno Avatar answered Sep 21 '22 21:09

Rowno