aspose file tools*
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
Author

Select and expanding widths

Dirk Schreckmann
Sheriff

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

Eric
Dirk Schreckmann
Sheriff

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Select and expanding widths