Was wondering if anyone knew if there was a way to set the width of a drop down menu rather than it being left to default resulting from the number of characters the options are.
I know that the size element allows you to set how may menu options are visable. Have tried width="" but doesnt work!
I could use non-breaking spaces but this is messy!
Any help will be much appreiciated!
joshie76
9:31 am on Feb 28, 2002 (gmt 0)
CSS style attributes can control the width of SELECT boxes:
<select style="width:300px"> ...
However this will be ignored by Netscape 4.x - the only way I know to control the width of a SELECT box in NN4 is to modify the length of the options themselves.
tedster
9:48 am on Feb 28, 2002 (gmt 0)
Width="" was a proprietary attribute that only works in Netscape 4, but it DOES work there. There's no harm in using a combined approach: