I am using Javascript to dynamically add new options to a drop down list and when the list reverts to the selected item with the arrow to the right of it to expand the list, the box containing the selected text is as wide as the widest text in the options list.
So what I would like to do is have the width of the box hug the text if you know what I mean without the redundant white space to the right of the text in the box.
Thanks a lot if anyone can help me with this :-)