Hi,
is it possible (using HTML only) to display select
with option
s that span multiple lines each?
regards
chriss
views:
1073answers:
4
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
2009-07-22 13:47:24
A:
No.
You could use radio buttons instead though, their <label>
s can word wrap.
David Dorward
2009-07-22 13:47:51
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
2009-07-22 13:48:02
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
2009-07-22 13:57:30