Simple question with seemingly no real solution for any browser other than Mozilla Firefox.
Can we, as of 2017, style the dropdown menu and <option> elements of a <select> field?
Preferably CSS only, but JavaScript solutions will do as well.
select {
outline: 0;
}
option {
outline: 0;
padding: 4px 8px;
}
option.yes {
border: 1px solid green;
}
option.yes_but_no {
border: 1px solid orange;
}
option.no {
border: 1px solid red;
}
<select>
<option>Choose an answer</option>
<option class="yes">Yes, we finally can!</option>
<option class="yes_but_no">Yes, but only in Firefox</option>
<option class="no">No, we still can't...</option>
</select>