Coloured backgrounds in dropdown

Is it possible to add colours to options in dropdowns. I have been able to display an example of how I want it to look by editing the html for the page when viewing my app (see below) but I don’t know how I would make this permanent for the app. Thanks for your help in advance.
2 answers

Short answer: no.  You can’t style dropdown (html: select) options in a way that works for all browsers. Some will allow you to style the option hover color (default blue), but that’s about it.

Outside the box answers:

  1. You could try this pretty enum widget to create a different ux that you can style as needed
  2. You could  create styled microflow buttons with which you change your object enum attribute and put these in a dropdown div converter widget.

This could be done if you create your own dropdown in a pluggable widget.