Here is my html code.
<label><b>Phone Verified : </b></label>
<select class="form-control phone_verified">
<option value="">Select Option</option>
<option value="1">Yes ()</option>
<option value="0">No ()</option>
</select>
I've linked cdn bootstrap link
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet"/>
<style type="text/css">
select {
font-family: 'FontAwesome', 'open sans'
}
</style>
In my chrome browser icon working perfect.
But in firefox not working.
I followed this font awesome icon in select option
Can anyone tell me what I'm doing wrong?
check JSFiddle Link :- https://jsfiddle.net/17j8pxqb/
If you installed the Free Font Awesome version but try adding Pro icons to your web pages, they won't show. The solution to this is either you use the alternative free icons or upgrade to a Pro subscription/license.
fas - solid icons are usually filled with transparent outlines. far regular and fal light are similar. These icons are different than fas solid because they are mostly outlines and differ only in outline width. fal light icons have thinner outline compared to far regular.
You place Font Awesome icons by using the prefix fa and the icon's name.
Unfortunately, this is an old issue with several browsers, especially Firefox on Mac OS X. There is a hack where you add a "multiple" attribute to the select tag, but this will alter the nature of your dropdown box and can result in unwanted input from the users.
<select multiple class="form-control phone_verified">
<option value="">Select Option</option>
<option value="1">Yes ()</option>
<option value="0">No ()</option>
</select>
Working solution on Fiddle
Issue on Github
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With