On my site, I need to display <select> only inside the icon. To do this, I created a custom font, such as font awesome , in which each character is one of my icons.
Then in my CSS I posted this:
@font-face { font-family: 'myIcon'; src:url('../fonts/myIcon.eot?eengex'); src:url('../fonts/myIcon.eot?#iefixeengex') format('embedded-opentype'), url('../fonts/myIcon.ttf?eengex') format('truetype'), url('../fonts/myIcon.woff?eengex') format('woff'), url('../fonts/myIcon.svg?eengex#myIcon') format('svg'); font-weight: normal; font-style: normal; } .select-with-icon { font-family: 'myIcon'; }
And in my HTML, I populated my <select> options containing a unicode representation of the characters:
<select class="select-with-icon"> <option value="myValue1"></option> <option value="myValue2"></option> <option value="myValue3"></option> ... </select>
Now everything works fine with Chrome and Firefox, but unexpectedly , I have some problems with IE.
Good with Chrome:

Completely empty with IE10 and IE9:

Last points:
- In IE, if I click on one of the empty options, the list will disappear and the selected icon will display correctly inside my
<select> , so the problem only seems to be with <option> . - I cannot use custom javascript components, only native
<select> .
EDIT:
I forgot to say in the original question, but works fine with IE11 .
Here's the codepen to try, I used bootstrap glyphics, and the problem is the same.
source share