0

I have select option here. I want to put color but not for all of them. Just little part of an option.

<select>
  <option>I want to set color
    <font class="text-dark-danger">here</font> and Not here.</option>
  <option>I want to set color
    <font class="text-dark-danger">here</font> and Not here.</option>
</select>

Is there any way I can make it happen?

Rana
  • 2,500
  • 2
  • 7
  • 28
  • Does this answer your question? [Styling part of the OPTION text](https://stackoverflow.com/questions/3354979/styling-part-of-the-option-text) – Reyno Oct 20 '21 at 09:44

1 Answers1

0

Nope. you can't Options styling doesn't work.

In this case, you need to create customized select options.

here you got some idea-