PDA

View Full Version : sizing a text field in a form


jim.davidson
08-28-2007, 03:57 PM
I have a table within a form and there are cells that I place text fields for user input. The problem I'm running into is the even though I set char width and max width to one, when I test it the size of the text field is about 3 even though it will only allow input of one char. This causes the table width to widen and I don't want that. I'm missing something, how do I get the size to remain at one?

domedia
08-28-2007, 04:44 PM
Limiting the amount of characters in the input field does not change the size of the input field. Add a CSS style to the field now make it smaller.

jim.davidson
08-28-2007, 04:51 PM
Thanks for your reply. I thought that was what I needed, but how do I do that? I don't have much experience with css. A little guidance would be appreciated.

jim.davidson
08-28-2007, 06:18 PM
I think I figured it out. I played around with the box settings and that seems to have done the trick. If anyone is thinking "oh oh he shouldn't do it that way" let me know.

domedia
08-28-2007, 07:42 PM
No, that sounds about right :)

jim.davidson
08-28-2007, 08:11 PM
Thank you,

Everyday I learn a little more...who knows, four or five years I just might know what I'm doing!:-D

davidj
08-29-2007, 09:24 AM
your not JIM (nick nick) DAVIDSON

the 6 times divorced, british comedian???

jim.davidson
08-29-2007, 01:08 PM
No...just a yank from Pittsburgh PA, but I wish I had his money.

davidj
08-29-2007, 01:40 PM
or one of his wives settlements