Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / May 2006



Tip: Looking for answers? Try searching our database.

the width of select

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
quickcur@yahoo.com - 31 May 2006 15:30 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
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.