1 reply
by j.wallace
Hi there,
Different browsers display things differently - especially form fields. You'll want to know what browsers your users will use and test accordingly.
I have IE 5.5 here and set a text input field to 80 characters. I set the font using CSS to 9px sans-serif (which isn't readable by everyone) and was able to fit 56 numbers.
Then I tried various sizes of monospace. Exact fit, every time. If you stay with a font with proportional spacing, you cannot be sure what they type will fit in the field unless you make the field rather long.
But, here's some useful code for your testing.
You could also declare the style globally, such as in the head...
CSS is the way to go for this. If it's important for the size to be a constant, change x-small to 13px - which are equivalent on my screen.
I recommendusability testing - pick a few older users and see if 13px works for them.
Another alternative to Courier New is Andale Mono, available from the Microsoft Web site.
Hoping this helps,
Rick
This discussion is closed to new replies.
Trending Community archive posts
Sort by Trending