0

Possible Duplicate:
Internet Explorer: drop down does not display option font family

I would like to modify the select's font family. Unfourtunatly it works only in firefox:

<select>
 <option value="times" style="font-family: times;">Times</option>
 <option value="arial" style="font-family: arial;">Arial</option>
 <option value="garamond" style="font-family: garamond;">Garamond</option>
</select>
Community
  • 1
  • 1
Danny Fox
  • 38,659
  • 28
  • 68
  • 94

1 Answers1

1

This is not possible or cross-browser compatible using pure HTML/CSS. See this jsFiddle for an example. This is due to the fact that some HTML elements cannot be styled. However, you can accomplish this using Javascript.

jacktheripper
  • 13,953
  • 12
  • 57
  • 93