Log in

View Full Version : Adjusting text box size using CSS?



johnnyi
09-20-2006, 06:24 PM
Howdy all,

Is it possible to control the size of a text box (like the example below) via CSS?


<input type="text" id="tb1" name="tb1" size="20" value="Hello">

For example, can I set the size of a textbox to (i.e.) 50 using a class?

Let me know if I'm not being clear...

I appreciate any assistance with this,

- I

shachi
09-20-2006, 06:27 PM
Actually I don't think you can control the size but only the width. just place this:



.input {
width: 100px;
}