Advice needed on Select Box option display...

J

June Moore

Hi,
I have a select box that has a fixed width. The fixed width is used to
ensure that the select box does not appear distorted on the form.

When the user selects an option, how do I show a tip for any titles
that are longer than the width of the select box, e.g. "Harry Potter
and the Prisoner of Azkaban"? If this is not possible, can anyone here
suggest ways that can make the longer titles visible to the user when
the select box is opened?

<select size="1" name="title_select" style="width=170px">
<option value="">Please select a film title</option>
<option value="A1">Ray</option>
<option value="A2">Harry Potter and the Prisoner of
Azkaban</option>
<option value="A3">The Aviator</option>
<option value="A4">Harry Potter and the Chamber of
Secrets</option>
<option value="A5">Eternal Sunshine of the Spotless Mind</option>
</select>

Thanks,
June.
 
S

Spats30

You could do a fake wrap of your optioins.

First put a seperator option between every title:

<option value="">-----------------------</option>

then just split your long descriptions onto two or more lines.

<option value="A2">Harry Potter and the</option>

<option value="A2">Prisoner of Azkaban</option>

<option value="">-----------------------</option>



That's one way to try it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top