ASP:DropDownList Codebehind Add Color
<p>Dropdown list needs to display items with varying text colors.  Color is decided by server-side.  Uses <code>&lt;style&gt;</code> tags versus CSS styling sheet.  See example:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        ListItem li = CreateListItemWithColor("Hello", "myValue", "blue");
        employeeDropDownBox.Items.Add(li);

    }
public ListItem CreateListItemWithColor(string text, string value, string color)
    {
        //Create the list item based on input text/value
        ListItem li = new ListItem();
        li.Text = text;
        li.Value = value;
        li.Attributes.Add("style", "color="+color);
        return li;
    }
</code></pre>

<p>From what I have read in other SO posts about formatting list item text, my general procedure seems close.  But my ListItem is always black.  What am I missing?</p>

<hr>

<p>Abbreviated HTML:</p>

<pre><code>&lt;style&gt;
    #employeeDropDownBox {
        height: 65px;
        width: 425px;
        font-size: 27px;
        margin-left: 5px;
    }

&lt;/style&gt;

&lt;div&gt;
    &lt;asp:DropDownList ID="employeeDropDownBox" runat="server" &gt;&lt;/asp:DropDownList&gt;
&lt;/div&gt;
</code></pre>