Questions tagged [font-awesome]

Font Awesome is an iconic standalone vector font, initially developed for use with the Twitter Bootstrap front-end framework.

Font Awesome is an iconic font purely built using scalable vector graphics, so it provides clear, smooth and scalable icons for use in different browsers and on different devices.

Font Awesome is currently on version 5.15.

You can check the new icons added here

Previous Versions:

  • v4.x.x
  • v3.x.x (These docs are for v3.2.1, which is no longer officially supported)

Version 4.1 was the first Font Awesome version that drops support of IE7 entirely, so you should not upgrade to it or any later version if your application must support IE7 browser.

Current version provides 7,865 font-icons

You can subset font-awesome using either icnfnt or fontello to create specific icon sets rather than downloading the entire family of icons.

It is free for commercial use and licensed under the SIL Open Font License 1.1.

CDN

Font awesome is available as a hosted file on content delivery networks, eg BootstrapCDN and Cloudflare CDN.

Stack Overflow Snippet Quick Start v5.15.2

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" />

Syntax, v5.x.x (documentation):

fa[x] fa-[name]

Where:

  • [x] is a prefix used for style group types (ex: fab- where b stands for brand)
  • [name] is the name of the icon (icon list).

For example:

<i class="fas fa-camera"></i> <!-- this icon's 1) style prefix == fas and 2) icon name == camera -->
<i class="fas fa-camera"></i> <!-- using an <i> element to reference the icon -->
<span class="fas fa-camera"></span> <!-- using a <span> element to reference the icon -->

Stack Overflow Snippet Quick Start v4.7.0

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">

Syntax, v4.x.x (documentation):

fa fa-[name]-[shape]-[o]-[direction]

Where:

  • [name] is the name of the icon (icon list).
  • [shape] is the optional shape of the icon's background: either circle or square.
  • [o] is the optional outlined version of the icon.
  • [direction] is the direction in which certain icons point (arrows, etc.).

For example:

<i class="fa fa-cogs"></i>
<i class="fa fa-bookmark-o"></i>
<i class="fa fa-facebook-square"></i>
<i class="fa fa-arrow-left"></i>

As Font Awesome icons are font-based we can then apply our own styling on top:

i.fa {
    color: purple;
    font-size: 64px;
    padding: 5px 10px;
}

CSS-applied Example

5577 questions
2
votes
1 answer

Fontawesome randomly shows rectangles in my android application

I'm working on a phonegap application with builds for ios and android. Somehow the android build is acting strange. Randomly some font-awesome icons are not displayed properly. This only happens on the android build. Font-awesome is being served…
2
votes
2 answers

Move a circle to the top right of a font awesome bell

I have got a font-awesome bell and I am trying to make a bell appear on the top right of the bell. Here is an example of what I want made in paint.NET https://gyazo.com/2d74f611e2df81362bc3f2e946f9d747 And here is what I have tried so…
Walshy
  • 850
  • 2
  • 11
  • 32
2
votes
2 answers

FontAwesome showing squares, not icons

My webpage is now showing squares for the icons, not the icons itself. I had the same page Page1.html (I "copy-pasted" the code to Page2.html), and Page2 is showing squares (with some characters inside ...), instead of icons. Well, I checked the…
Lloyd Dominic
  • 778
  • 8
  • 25
2
votes
2 answers

font awesome not working in ie9 & ie11 compatibility mode

Font Awesome renders perfectly in Chrome, Firefox, Safari, Opera, and Internet Explorer 11 in standard mode. When Compatibility Mode turned "On" on IE9 OR IE11 no icon render. Here is my HTML Structure on IE9 (Compatibility Mode turned…
Daniel Smith
  • 1,626
  • 3
  • 29
  • 59
2
votes
0 answers

Can't get font awesome icons to display

Please, before closing as duplicate or bashing me take a look at what I've done. I generated the project with the latest angular-fullstack generator, which included font-awesome. I tried adding this line into the main.html just to verify that the…
2
votes
3 answers

Using font awesome icons inside tooltip

I want to use a font-awesome icon in the tooltip. : Level-2. : Level-3."> The code is…
Aparna
  • 25
  • 2
  • 7
2
votes
1 answer

Understanding the folder structure and files needed for using Bootstrap and Font-awesome

I have a nodejs app, which include one folder in the root directory, whose layer is as follow: /public /css /bootstrap.min.css /font-awesome.min.css /luqa.css /fonts /fontawesome-webfont.eot …
Weiheng Li
  • 565
  • 8
  • 19
2
votes
0 answers

How to remove 404 errors on font awesome fonts when using npm, webpack, and react

I keep getting a weird error on fontawesome fonts. First here are the steps that I took to insert the fonts: npm install font-awesome. This created a font-awesome directory in node_modules In my sass file (located in src/styles), I imported…
Gasim
  • 7,615
  • 14
  • 64
  • 131
2
votes
2 answers

font awesome css and fonts folder are loading in project but font awesome icons are displayed as squares

I use fontawesome in almost all the projects I work. But this time I'm getting the icons displayed as squares. I also tried almost all the solutions listed on stackoverflow and nothing seems to work for my case.I guess something is preventing me…
Gowtham
  • 3,198
  • 2
  • 19
  • 30
2
votes
0 answers

Font Awesome fonts not loaded on first page load in ios safari

This problem is driving me up the wall... I have a website that uses font-awesome. On a cold start, with a clear cache, font awesome fonts are not rendering in ios Safari (desktop browsers seem fine). On any subsequent page load, including…
Giovanni Galbo
  • 12,963
  • 13
  • 59
  • 78
2
votes
1 answer

Meteor npm install font-awesome, cannot find module 'fontawesome'"

I am using meteor 1.4.1.1 with NPM support. I installed the npm "font-awesome" package and getting the error on the console "Uncaught Error: Cannot find module 'fontawesome'". I installed it with meteor npm install --save font-awesome The package…
Mario Deubler
  • 245
  • 1
  • 13
2
votes
1 answer

How to format svg icons size

I am trying to understand how SVG icon works.I have a "font awesome" icon and I want to replace it with a SVG icon. I studied that font awesome icon and svg automatically adjust their resolution and size. But when I put the svg icon the icon becomes…
Unbreakable
  • 7,776
  • 24
  • 90
  • 171
2
votes
1 answer

Tooltip not displaying on fontawesome icon button

I have a fontawesome icon nested inside a but the tooltip is not popping up. style: i.fa { display: inline-block; }
Arthur
  • 2,622
  • 4
  • 28
  • 46
2
votes
5 answers

How can I make the width transition smooth on hover?

This is probably super simple but I'm completely stuck and I can't find anything helpful. Sorry if this was asked already, if so please link me to it and sorry to have wasted your time. So, I have this code: #nav { position: fixed; top:…
Sol
  • 59
  • 1
  • 8
2
votes
1 answer

FontAwesome Icons not showing up. Using Bootstrap, Atom and GitHub Pages

I followed this tutorial: https://www.youtube.com/watch?v=Fc48IYYaEHw&index=4&list=PL0qaQSYB_0TD-7tNkfMnJ0DCFJVjBNF8G EXCEPT that I added the icons to my header instead and deleted my footer. They were showing up fine. Then for some reason they…
1 2 3
99
100