1

I am not able to view font awosom icon in options. It will display when I select it but not displayed in options.

I have implement code as: HTML

<select id="dropdownview" class="rounded ps-3 pe-2">
    <option value="classic" id="classic">&#xf03a; &nbsp; &nbsp;Classic</option>
    <option value="compact" id="compact">&#xf0c9; &nbsp; &nbsp;Compact</option>
    <option value="table" id="Table1">&#xf0ce; &nbsp; &nbsp;Table</option>
</select>           

CSS

@font-face {
    font-family: "FontAwesome";
    font-weight: 600;
    font-style : normal;
    src : url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot");
    src : url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot") format("embedded-opentype"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff") format("woff"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf") format("truetype"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.svg") format("svg");
}
#dropdownview {
    font-family: FontAwesome;
}

usha febar
  • 11
  • 1

0 Answers0