PDA

View Full Version : menu/list width question



swiftmed
19 May 2006, 06:09 AM
Hello,

I have been asked by one of my clients to make the width of a dynamic dropdown list a certain width. I thought there would be an option like on a text field where you could enter the amount of character width you would like but there is not.

Is there a way i can make this a certain width? many thanks for any advice provided. Thank You!!

Andy MacDonald

Rincewind
19 May 2006, 06:59 AM
The size of the box depends on the lenght of the words in the box. If you only use 8 letter words, then the box will only be 8 letters long. You could make a minimum width by adding black non-breaking spaces to the end of one of the items so foarcing the width out. But it wouldn't realy be right to make the box smaller than the text it contains. The text box has the character size included because it is usually empty by default.

You could also set the font size using css. If you want a smaller box, use a smaller font size.