0
I’m having trouble displaying some 'icones' from Fontawesome as in the example, note that an icon is displayed however the second not, and when I click the select box the first option also does not display the icon correctly. How can I correct such errors?
select {
-webkit-appearance: none;
-moz-appearance: none;
-o-appearance: none;
-ms-appearance: none;
appearance: none;
font-family: "Font Awesome 5 Free", "Roboto";
font-weight: 900;
font-size: 15px;
color: #727272;
border: none;
margin-right: 10px; }
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<div class="lang">
<select>
<option value="1">Português </option>
<option value="2">English</option>
</select>
<select>
<option value="1">BRL </option>
<option value="2">USD</option>
</select>
</div>
Could you explain how you did for the tag
<i>
function within a select?– hugocsl
Just add it inside any <option>. The <i> tag serves to identify an icon.
– Migl Araújo
Sorry, I guess I was unclear. The question is why one icon works the other not using Unicode directly.
– Robison Aleixo
Because the correct method of use is through the <i> tag, and by Unicode, html will not recognize directly the Unicode of the awesome font, because the same is proper.
– Migl Araújo