Hello everybody. I have a question/problem.
I have a select tag with several options. Sometimes the text of the option becomes very large. So I tried something like this for example:

<select>
  <option>A Very Big <br/> sentence</option>
</select>

But it didn't work. What I was trying is to put the <br> between the option tags, so some of the options to be displayed in 2 lines.

Is that possible?

Thank you.

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

commented: Thanks for the reply +13

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

Seems like it. After some search there doesn't seem to be a way to do it with conventional html or javascript.
Thanks for the reply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.