resize edit box

windows

Guest
Hi.<br />
<br />
I have an edit box which takes values from the database. I used ASP to do it. <br />
<br />
Curently the size of the edit box is size = "10"<br />
<br />
BUT sometimes the length of the values are longer than the size of the edit box and sometimes are smaller.<br />
<br />
Is it possible to resize the edit box according to the size of the value???<br />
<br />
Any help will be appreciated.<!--content-->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.<br />
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<br />
string length = 10<br />
<input style="width:80px;"><br />
<br />
:D <br />
<br />
I hope this helps<br />
<br />
Cheers<br />
<br />
Khalid<!--content-->
 
Back
Top