How do I Auto resize dropdown list part of a combo box (not the text part of the combo box but the list) I do not want to resize the box its self I want to resize the List part of the combo box to the size of the longest item in the list box. The following code works find in FireFox, but not in IE. Thanks Peter <html> <head> <title>test</title> </head> <body> <select style="width:50px"> <option selected>[select]</option> <option value="">Test </option> <option value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> <option value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> </select> </body> </html>
Hi I think the only way you can only resize combos controls in IE is via the text which first appears in combo control as it first appears (before being dropped down), by using html entities such as " " to create a blank space. I have never found any infor that says anything contrary to this. joe "Peter" <pczurak@nospam.nospam> wrote in message news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl... > How do I Auto resize dropdown list part of a combo box (not the text part > of the combo box but the list) > I do not want to resize the box its self I want to resize the List part of > the combo box to the size of the longest item in the list box. > > The following code works find in FireFox, but not in IE. > > Thanks > > > Peter > > > <html> > <head> > <title>test</title> > </head> > <body> > > <select style="width:50px"> > <option selected>[select]</option> > <option value="">Test </option> > <option > value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > <option > value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> > </select> > > </body> > </html> > > >
Hi again And sorry, because having read my previous message, I can see that I have not been very clear and in fact I misunderstood your question. All you need to do is to change the size of the "select" tag thus: <select style="width:150px"> ================================================================================================ "joe" wrote in message news:u00Ilx4TIHA.4584@TK2MSFTNGP03.phx.gbl... > Hi > > I think the only way you can only resize combos controls in IE is via the > text which first appears in combo control as it first appears (before > being dropped down), by using html entities such as " " to create a > blank space. > > I have never found any infor that says anything contrary to this. > > joe > "Peter" <pczurak@nospam.nospam> wrote in message > news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl... >> How do I Auto resize dropdown list part of a combo box (not the text part >> of the combo box but the list) >> I do not want to resize the box its self I want to resize the List part >> of the combo box to the size of the longest item in the list box. >> >> The following code works find in FireFox, but not in IE. >> >> Thanks >> >> >> Peter >> >> >> <html> >> <head> >> <title>test</title> >> </head> >> <body> >> >> <select style="width:50px"> >> <option selected>[select]</option> >> <option value="">Test </option> >> <option >> value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> <option >> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >> </select> >> >> </body> >> </html> >> >> >> > >
Thanks for your help, but <select style="width:150px"> only resze the text box part of the dropdown it does not resize the Listbox part. If you display the included webpage in FireFox and then in IE you'll see what I mean. "joe" wrote in message news:ek4ddA5TIHA.3516@TK2MSFTNGP02.phx.gbl... > Hi again > > And sorry, because having read my previous message, I can see that I have > not been very clear and in fact I misunderstood your question. > > All you need to do is to change the size of the "select" tag thus: > > <select style="width:150px"> > > ================================================================================================ > "joe" wrote in message > news:u00Ilx4TIHA.4584@TK2MSFTNGP03.phx.gbl... >> Hi >> >> I think the only way you can only resize combos controls in IE is via the >> text which first appears in combo control as it first appears (before >> being dropped down), by using html entities such as " " to create a >> blank space. >> >> I have never found any infor that says anything contrary to this. >> >> joe >> "Peter" <pczurak@nospam.nospam> wrote in message >> news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl... >>> How do I Auto resize dropdown list part of a combo box (not the text >>> part of the combo box but the list) >>> I do not want to resize the box its self I want to resize the List part >>> of the combo box to the size of the longest item in the list box. >>> >>> The following code works find in FireFox, but not in IE. >>> >>> Thanks >>> >>> >>> Peter >>> >>> >>> <html> >>> <head> >>> <title>test</title> >>> </head> >>> <body> >>> >>> <select style="width:50px"> >>> <option selected>[select]</option> >>> <option value="">Test </option> >>> <option >>> value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> <option >>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option> >>> </select> >>> >>> </body> >>> </html> >>> >>> >>> >> >> > >