/    Sign up×
Community /Pin to ProfileBookmark

Select – hover / variable length?

I’ve got some multiple select boxes where you can move text from one box to another. I’ve had some feedback that the boxes should be fixed width, instead of changing size with the data. Only problem is, the data in the boxes is from the database, and variable length. So if I the data changes and I make it too small then some of the text will get truncated (I could probably use code to calculate the length but that will slow things down).

So is it possible to have some kind of thing where the option shows the whole text when you hover over it, like in some windows apps where it shows up in a yellow box?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@Daniel_TJan 27.2005 — [font="trebuchet ms"]I have not tried it myself, but logic says that this should work:[/font]<option value="value" title="This is the full text, but it may be truncated in the option box.">This is the full text, but it may be truncated in the option box.</option>
Copy linkTweet thisAlerts:
@PinguauthorJan 27.2005 — Unfortunately it didn't work but thanks for the suggestion.
Copy linkTweet thisAlerts:
@BeachSideJan 27.2005 — Like this [URL=http://www.webreference.com/js/column16/index.html]here[/URL]


Also would you know how long the longest text will be if so then you can make that your char width for the boxes
×

Success!

Help @Pingu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...