How can I add Font Awesome to my Aurelia project using npm?

Don’t add font-awesome resources to aurelia.json – you’d need font files too, which Aurelia don’t process. Instead, take the following steps. First, if you added anything for font-awesome already to your aurelia.json file, remove it again. Add new file prepare-font-awesome.js in folder \aurelia_project\tasks and insert the below code. It copies font-awesome resource files to output … Read more

Make Font Awesome icons in a circle?

With Font Awesome you can easily use stacked icons like this: <span class=”fa-stack fa-2x”> <i class=”fas fa-circle-thin fa-stack-2x”></i> <i class=”fas fa-lock fa-stack-1x fa-inverse”></i> </span> refer Font Awesome Stacked Icons Update:- Fiddle for stacked icons

CSS for star ratings via FontAwesome

The overflow:hidden needs to be on ‘stars-active’ (the sized element) instead of ‘score-wrap’ (which never overflows.) You can use white-space: nowrap to prevent the stars from wrapping to the next line within the hidden-overflow container. .score { display: block; font-size: 16px; position: relative; overflow: hidden; } .score-wrap { display: inline-block; position: relative; height: 19px; } … Read more

How to change the inner white color of Font Awesome’s exclamation triangle icon?

The exclamation mark of this icon is a transparent part, so a trick is to add a background behind it to have the needed coloration. Of couse, the background shouldn’t cover the whole area so we need to use a gradient to cover only a part of it. .fa-exclamation-triangle { background:linear-gradient(red,red) center bottom/20% 84% no-repeat; … Read more

Font awesome is not showing icon

In my case i made the following mistake in my css code. *{ font-family: ‘Open Sans’, sans-serif !important; } This will override all font family rules for the entire page. My solution was to move the code to body like so. body{ font-family: ‘Open Sans’, sans-serif; } NB: Whenever you use the !important flag in … Read more

Using Icon Fonts as Markers in Google Maps V3

I just had the same problem – decided to do a quick and dirty conversion and host on github. https://github.com/nathan-muir/fontawesome-markers You can manually include the JS file, or use npm install fontawesome-markers or bower install fontawesome-markers. Just include the javascript file fontawesome-markers.min.js and you can use them like so: new google.maps.Marker({ map: map, icon: { … Read more

Extracting SVG from Font Awesome

UPDATE 2022 thanks to Chris Aelbrecht comment below: official repo has the SVGs of the latest version for download https://github.com/FortAwesome/Font-Awesome/tree/master/svgs original answer: Just get the ready svg icons from this github repo They are already flipped and centered as needed

Font Awesome icons are not working, I have included all required files [closed]

For seekers of missing font-awesome icons, I have collected a few ideas: Assure you use a correct link to the CDN, such as: <link href=”http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css” rel=”stylesheet” type=”text/css”> If your page uses HTTPS, do you link to the font-awesome CSS using HTTPS (replace http:// with https:// in the link above). Double check that you don’t have … Read more

How to change color of icons in Font Awesome 5?

Font Awesome 5 uses svg for icons and path inside are set with fill:currentColor so simply change color of svg: .icons svg { color:#2759AE; } <script defer src=”https://use.fontawesome.com/releases/v5.5.0/js/all.js”></script> <div class=”container mt200 icons”> <div class=”col-md-3″> <div class=”bggray2 text-center”> <i class=”fas fa-microphone fa-5x”></i> <div class=”title”>LOREM</div> <div class=”text”>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet … Read more

Font Awesome icons not showing in Chrome, a MaxCDN related Cross-Origin Resource Sharing policy issue

Here is the working method to allow access from all domains for webfonts: # Allow access from all domains for webfonts. # Alternatively you could only whitelist your # subdomains like “subdomain.example.com”. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”> Header set Access-Control-Allow-Origin “*” </FilesMatch> </IfModule>