|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
text field problem
I have a text field which is supposed to get the area code of the telephone number of the users. It's something like this:
<input NAME="areacode" TYPE="TEXT" SIZE="3" MAXLENGTH="3" > when it shows up on browser, it seems the text field is bigger than 3, even if I set it as maxlength="3". Can anybody here tell me how to format it to be exactly 3 without extra space on the browsers? Thanks |
|
#2
|
||||
|
||||
|
Just set SIZE="1" for a tighter fit.
Code:
<input NAME="areacode" TYPE="TEXT" SIZE="1" MAXLENGTH="3"> |
|
#3
|
|||
|
|||
|
it still doesn't fit very well
|
|
#4
|
||||
|
||||
|
I tried out with size="1" and it fit perfect. What browser are you using?
|
|
#5
|
|||
|
|||
|
in both IE and Netscape, it doesn't fit very well.
|
|
#6
|
||||
|
||||
|
I just tried it with all of my browsers and here are the results:
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > text field problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|