• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Extending combo-box drop-down width w/o increasing combo-box width

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..I have a jsp page where the combo-box has very large values in drop-down menu.However I cannot increase the width of combo-box..

But for readability purpose so that the user is able to view the choices in drop-down menu I need to increase the size of drop-down menu even though the visible combo-box size is less than drop-down menu..

Can anybody suggest or help......
 
Sheriff
Posts: 67754
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
Firstly, it's not a "combo box". It's a select element. The "combo box" is a desktop control that has no HTML equivalent.

Secondly, you have very limited control of how the select element will appear on the page at the whim of the browsers. You can use the CSS width rule to enforce a width, but beyond that you're pretty much at the mercy of the browsers.
 
reply
    Bookmark Topic Watch Topic
  • New Topic