Feedback on: irt.org FAQ Knowledge Base Q67
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
You can also set the width of a select box through CSS:
<select name="province" size="1" style="width: 50mm">
...
</select>
Keep up the good work!
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
<select name=name1 style="width: 50mm>
works only on IE, netscape (at least v4.61) ignores the style part.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
<select name="..." size="1" style="width: 100">
works fine for IE but not for NS
For NS, I propose
<select name="..." size="1" width="100">
If you want sommething that run for IE and for NS, the only solution I have is to combine the two :
<select name="..." size="1" width="100" style="width: 100">
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
Worked fine in IE but did not work at all in netscape and caused the select box to not size at all thus being unable to see the items in it.
Worth:
Worth reading
Comments:
The width of a select box can be controlled in Netscape by the WIDTH argument (number of pixels) or in IE by the STYLE argument.
<select name="province" size="1" width='100' style="width: 50mm">
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
I confirmed that the style width attribute works in IE 5.5: you can explicitly state the width, in mm, of a select list, regardless of the character length of that list's contents. However, when you click on the list, the items may not be legible if the text is too long -- so there's the possibility that your select list will contain items the user is never able to read.
Length:
Just right
Technical:
Not technical enough
Comments:
It didnt worked in Netscape 4.7.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Thanks for the code! I was able to reduce the font size in the select box but couldn't get the width to be regulated.