title: How to set the Selected Item's text color in Html.Listbox
body: <p>I can't seem to find anything on the internet regarding this, when I do it is only regarding WPF.</p>
  
  <p>How do I set the Selected Item's text color in a Html.Listbox.
  Not talking about the highligted color of a selected item, but the <strong>text color</strong> of a <strong>selected</strong> item.</p>
  
  <p>Here is my code, I am using asp.net-mvc.</p>
  
  <pre><code>&lt;div style="display: inline-block; width: 265px;"&gt;
  Blocked 
  &lt;br /&gt;
  &lt;%=Html.ListBox("blockedNumbers", Model.Version.AvailableInBook.Where(ac =&gt; ac.Status 
  == NumberCountryStatusEnum.Blocked).Select(status =&gt; new SelectListItem
     {
       Selected = false,
       Value = status.CountryInfo.Code,
       Text = status.CountryInfo.Tel
     }), new { id = "blockedNumbers", style = "height: 160px; width: 260px;margin: 5px 5px 10px 0;" })%&gt;
  </code></pre>
  
  <p></p>
  
  <p>I probably have to change it in the style, but don't know what attribute.</p>
  
  <p>Thanks a million in advance</p>