internet explorer - What is the default size for an HTML form field (type=text)? -
I have a page that has two fields on the top of an area visually, but in fact there are two different forms .
In Firefox, they appear the same width in IE (IE6, IE7, IE8) they appear with different widths.
Here's a sample, I think the problem is "size ="
When you do this (without size), what's the size?
I have found some docs and ...
But this clear estimate could not be found, what the default value should be.
FireFox 3.0 by playing with firebug, it seems that it's 20 in Gecko.
In IE, this variable looks, which I do not understand.
UPDATE:
I tried to compare the characteristics of two variables, but were unable to separate the variable. I hacked the file to use both size set = 20, but the width is still different (although less than before).
Even in IE 6 and 7 this appears to be 20. Without knowing more about your test conditions or results, it is difficult to say why you are facing "variables" default sizes.
The "size" attribute will always be sung relative to the font size set in style. As the "20" size in size 20 font is different from "20" in 20 font because the "size" character is relative to the width. If you want a hard / steady width, then use the width CSS property.
Comments
Post a Comment