[Javascript] Select Box - List Style

Gee, David dgee at freemarkets.com
Mon Jun 14 12:49:18 CDT 2004


Not sure if it works on select boxes, but modern browsers support the
"min-width" attribute. I've noticed that (using "width") Gecko browsers
will clip the string in the select box if it's too long, but when you
drop the list down, the list expands to show the full string. Pretty
slick.

David


-----Original Message-----
From: Dave Stoltz [mailto:dstoltz at shh.org] 
Sent: Monday, June 14, 2004 1:01 PM
To: '[JavaScript List]'
Subject: RE: [Javascript] Select Box - List Style


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