0

I have a php html drop-down with multiple columns. I want to apply each column different color.

<select name="comp">
<option value="" disabled selected>Select Company</option>
<option value="">Item - Company</option>
</select>

Expected Result : "Item" should be in Red color "Company" should be in Green Color

u_mulder
  • 54,101
  • 5
  • 48
  • 64
  • 3
    Possible duplicate of [Styling part of the OPTION text](https://stackoverflow.com/questions/3354979/styling-part-of-the-option-text) – u_mulder Oct 19 '19 at 09:45
  • I think there isn't a native solution in html or css, but you can use a javascript plugin like https://selectric.js.org/ – Curlas Oct 19 '19 at 15:35

0 Answers0