linebreak in <select>-menu?

A

Alexander Ryck

Hello!
Is it possible to add a linebreak into one <option> in a
<select>-dropdown menu, so that the field won't get too long?

Greets
Alexander Ryck
 
J

Jukka K. Korpela

Alexander Ryck said:
Is it possible to add a linebreak into one <option> in a
<select>-dropdown menu, so that the field won't get too long?

No. Or you can put as many linebreaks there as you like, but they are
treated as equivalent to spaces.

You might however find use for the <optgroup> element, or you could
consider using a set of radio buttons instead of a <select> element.
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top