Click to See Complete Forum and Search --> : resize edit box


swstos
04-03-2003, 01:18 PM
Hi.

I have an edit box which takes values from the database. I used ASP to do it.

Curently the size of the edit box is size = "10"

BUT sometimes the length of the values are longer than the size of the edit box and sometimes are smaller.

Is it possible to resize the edit box according to the size of the value???

Any help will be appreciated.

khalidali63
04-03-2003, 01:48 PM
If I rememebr correctly,I think if you use stylesheet property width and increment it 8pixels ( make sure its pixels not points) for each character I think you will bein th egame.
In your asp code you get the length the of the string and then set the size of the text field with that lenght e.g
string length = 10
<input style="width:80px;">

:D

I hope this helps

Cheers

Khalid