This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Select and expanding widths Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Select and expanding widths" Watch "Select and expanding widths" New topic

Select and expanding widths

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'd like to create a select with a width of something smaller than the text I want viewed on each row.

Mozilla seems to support something like this, using titles and alt text for items in a select component. In the (narrow) select component, items are dislayed using their (short) title text. When the mouse cursor hovers over an item, the (longer) alt text is shown.

IE doesn't seem to support this.

Any ideas? (Did I describe what I'm trying to do well enough.)

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Mozilla based browsers only support that feature if I remember correctly. Selects are one of the most pain in the butt elements on the page since they do not support things that they should especially with overflowing of text.

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm trying to come up with a solution that will work in Internet Explorer. I can use technologies other than HTML (including DHTML, JavaScript, Flash, even a Java Applet).

Any suggestions?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Select and expanding widths
It's not a secret anymore!