AKAIK drop-downs are one line only, i.e. there is no way to make text wrap. The 
usual solution is to set the title attribute of each option element so that at 
least the user can hover over an option to see its full text, but it's a 
sub-optimal solution really.
Regards,
Damian Edwards
Microsoft MVP<https://mvp.support.microsoft.com/profile/Damian.Edwards> | 
ASP/ASP.NET
Readify | Senior Consultant
M: 0448 545 868 | E: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> | C: [EMAIL 
PROTECTED]<sip:[EMAIL PROTECTED]> | W: www.readify.net<http://www.readify.net/>

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Likely, James A.
Sent: Thursday, 16 October 2008 09:02
To: wsg@webstandardsgroup.org
Subject: [WSG] Forms - Drop down width


Hello,

I am working on a registration form and found a problem with how IE7 handles 
the drop downs.

If I set a width in the CSS on the drop down, the text will not wrap and be cut 
off. I don't want to have to set a full width as the drop down is reminder 
answers and will be a bit long.

Does any one know how to control the drop down width and to make it so the text 
wraps.

Any help would be great!

Example code is:
<form>
<label for="question">Reminder question:</label>
<select name="" id="question" width="200" style="width:200px;">
<option>Select a Reminder Question</option>
<option>What is the first and last name of your first boyfriend or girlfriend? 
</option>
<option>Which phone number do you remember most from your childhood?</option>
<option>What was your favorite place to visit as a child? </option>
<option>Who is your favorite actor, musician, or artist?</option>
</select>
</form>

Thanks

Jamie

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to