I have a form in my html and a <select> inside the form. I did no
specify the width of the <select>. Since one of the options in the
select has a very long text, the <select> filed takes a lot of space in
the page. I want to make it samller in the page, but if I give it a
width, the whole text is not display when user pull down the list. How
can I do it? I waht it is norrow in the page, but when the user click
the pull down list, I want to show the the whole text.
Thanks,
qq
Tony - 31 May 2006 18:47 GMT
> I have a form in my html and a <select> inside the form. I did no
> specify the width of the <select>. Since one of the options in the
[quoted text clipped - 3 lines]
> can I do it? I waht it is norrow in the page, but when the user click
> the pull down list, I want to show the the whole text.
You can set the width easily by adding: style="width:___" (fill in the
blank with the width you want, in em or in px - ie 5em or 150px) - but
IE won't produce the behavior you want where the drop-down will expand.