Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can the textbox width be reduced?

Can I reduce the textbox width without using classes?

<input type="text" maxlength="5" style="3px"/>
like image 590
svk Avatar asked Oct 28 '09 12:10

svk


People also ask

How do you change the width and height of a text box?

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.

How do you change the width of a text field?

To change the TextField width, you can simply wrap your TextField inside the SizedBox widget and give the appropriate width value. Here's how you do it: Step 1: Wrap your TextField inside the SizedBox widget. Step 2: Inside the SizedBox, Add the width parameter and assign the appropriate value.

How do you change the size of a text box 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; } <!


2 Answers

<input type="text" style="width:50px;"/>
like image 152
Faruz Avatar answered Sep 21 '22 13:09

Faruz


Is not nice to define textbox width without using CSS, be warned ;-)

<input type="text" name="d" value="4" size="4" />
like image 32
blagus Avatar answered Sep 20 '22 13:09

blagus