Force a SELECT list width?

I have a JavaScript that can dynamically add/delete from an HTML SELECT list.  However, the width of this control changes to accommodate the widest text contained within it.

Is there a way to force the width of a SELECT control via JavaScript?

Thanks,

Don
dmetzlerAsked:
Who is Participating?
 
xabiConnect With a Mentor Commented:
Here goes the code:

<select name="myselect" size="1" style="width: 20mm">

xabi
0
 
xabiCommented:
Note that this doesn't occurs on NS.
0
 
xabiCommented:
You can get more info here:

http://developer.irt.org/script/858.htm

xabi
0
 
dmetzlerAuthor Commented:
Thanks!

Don
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.