PDA

View Full Version : Forcing Width of Drop Down Boxes?


spinweb
03-21-2003, 02:17 PM
I've got several drop down boxes in the same column and they're all slightly different widths. Is there a way to force them all to be the width of the widest one?

Thx,
Spinweb

zoobie
03-21-2003, 08:13 PM
Try css:

<select style="width:120;height:20">
<option>etc

:D

spinweb
03-21-2003, 09:11 PM
Thanks. It works great, until I send it to the server and some other include undoes the style! Have to look into that later.

Don't you hate when that happens?

Rick

cg9com
03-21-2003, 10:29 PM
how would an include undo the style? you must have some conflicting CSS.

swmr
03-22-2003, 03:41 AM
Would using "&nbsp;" to even out the # of characters to that of the widest select list work... or is that a bad idea?

cg9com
03-22-2003, 04:29 AM
yes that would work swmr.

zoobie, you forgot the px I believe.

zoobie
03-23-2003, 07:51 AM
Hmm...I thought it defaulted to px. :eek: