You can't. Well at least with version 4 you can't. The width is indeed
dependant on the widest item in the list. There is no way to force it to be
smaller (unless you consider cutting of text an option) but you can cheat a
little by adding spaces to make it bigger.
However, this will generate different results on different platforms
running Netscape.
I think that in NN 6 the problem should be solved, because AFAIK, "width"
is an CSS standard, which they claim to support.
Imar
At 08:11 PM 1/8/2001 -0800, you wrote:
>I have a silly question regarding style.
>
>How can I set the width of a <select> aka List Box in Netscape?
>
>With IE, the statement works just fine.
>
><select name=lstMyListBox style="width=300px">
> <option>Option one</option>
> <option>Option two</option>
></select>
>
>No matter what the contents of the list box will always be 300 pixels
>wide. In Netscape, the width is totally dependant on widest item in the
>list.
>
>Thanks for any assistance.
>
>Mike
>
>
>
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to html_code_clinic as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-html_code_clinic-$subst('Recip.MemberIDChar')@p2p.wrox.com