tags:

views:

1073

answers:

4

Hi,
is it possible (using HTML only) to display select with options that span multiple lines each?

regards
chriss

A: 

As the presentation of a select element is up to the user agent, I'm afraid you can't have that, unless some UA actually implements it. But select as either a ListBox or ComboBox never really had much need for items spanning multiple lines. Furthermore it would greatly confuse users as they are used to one line = one item.

Joey
A: 

No.

You could use radio buttons instead though, their <label>s can word wrap.

David Dorward
A: 

It is not possible using html select control.

You can use a div that can act as a dropdown list using JavaScript and css.

rahul
A: 

It would be possible by using some JavaScript with CSS styling on HTML elements, easily done with a framework like Dojo Toolkit. Otherwise, use Radio or Checkbox controls.

Wahnfrieden