• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with select box width

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have set my SELECT dopdown to a max width of 20.
On Firefox, when I drop the list down it doesn't scroll, but it does make the width of the dropdown the size of the largest entry. This is OK.
But in IE, it doesn't even do that. The dropdown stays the same width of 10 and so I can't read all the entries. What else can I do?

I want the select box to be a set width. But when I drop the list down, I want to be able to see all the text. In Firefox, But in IE I don't no why?.

Some one please suggest me how to resolve this?

Thanks,
With Best Regards,
Kalyan G.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're stuck. IE does what IE wants, and there's nothing you can do about it.

You can either live with it, or let the dropdown choose its own natural size, or use an alternate control.

You will not be able to make IE act the same as the real browsers in this respect.
 
kalyan narra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you please suggest me what the alternate control ways for do this easily....

Thanks,
Kalyan G
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one said anything about easy. One alternative I sometimes use is a jQuery UI autocompleter.
 
kalyan narra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Bear.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic