This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15376
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 agree. Here's the link:
subject: Select and expanding widths
Similar Threads
Choosing Multiple Files From the Browse button
JInternal frame not getting updated
Using an alt attribute with HTML elements
Mnemonic related issue
Multiple Selection of ListItems using JavaFX