[Javascript] Select Box - List Style
Hakan Magnusson
hakan at backbase.com
Mon Jun 14 14:49:05 CDT 2004
In decent browsers you can.
Use
min-width: 200px;
instead of width. This won't work in Internet Explorer, since it's part
of the mind bogglingly new CSS2 specifications, only seven years old. :)
Regards,
H
Dave Stoltz wrote:
> Thanks!
>
> But the only problem with that is, if I populate the listbox with a long
> string, it won't stretch...
>
> I guess I can't have my cake and eat it too....:)
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
> On Behalf Of Peter Brunone
> Sent: Monday, June 14, 2004 12:37 PM
> To: '[JavaScript List]'
> Subject: RE: [Javascript] Select Box - List Style
>
> Dave,
>
> You can use the CSS width attribute to tell the box how wide you
> want it to be, e.g.
>
> <select style="width:300px;">
>
> Cheers,
>
> Peter Brunone
> ___________________
> Do the impossible.
> Go home early.
> www.EasyListBox.com
> ___________________
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of Dave Stoltz
>
> If I have an empty select box in the list style (not dropdown), it appears
> very narrow...
>
> Is there any way you can make an empty select box have an initial width?
>
> Thanks!
> Dave
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list