Forum Moderators: not2easy

Message Too Old, No Replies

Determining Width Of A Form

In Particular A Pull-Down Menu

         

Frank Jaeger

6:01 am on Feb 8, 2004 (gmt 0)

10+ Year Member



[innocentinsanity.initialhost.com...]

I was wondering if there was a way to set the width of a pull-down menu with CSS. Thanks in advance.

EDIT: I was also wondering if there was a way to determine the border of a form, and the color of the scrollbar. Again, thanks in advance.

ergophobe

5:48 pm on Feb 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, just set

select {width: 5em;}

or whatever. This works fine in Firebird/Mozilla. In IE it will set the size of the dropdown, but it will not expand it when it drops down. So if you have

mmm mmm good
mmm mmm bad
mmm mmm ok

and you set width:3em

Firebird users will see the whole list
IE users will see
mmm
mmm
mmm

So use some care when setting the width.

Tom