You should use a combination of css and size attribute.
Applying the text properties to the style of input field with css will set the font face and font size, while size will set the length of input field.
width: 70px will set the size of input field in IE, Opera and Netscape6, while size="5" along with font settings from class="txt1" will do this for NN4.x.
This way you can make form elements look (almost) exactly the same in all browsers.
I always use this trick and it never fails.
good luck
I have encountered the same problems in trying to get form fields to appear the same in various browsers. I was not able to find a single solution to make things work for all (what else is new?)
We use ColdFusion so I created custom tags for both the TEXTAREA and the INPUT TYPE="TEXT" so that the tag can detect what browser is being used and then display the field using an appropriate size which is passed as an attribute. Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.