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
2 answers

Address Card and ID Card are not working in font awesome

I am using id-card icon of font awesome. The icon is even listed on Font Awesome's Official Website but still doesn't seem to work, it just shows the blank box.
Shilpi Agrawal
  • 67
  • 1
  • 12
2
votes
4 answers

Make Font Awesome icons in a circle border with right 1:1 ratio

In some case, if the ratio of the icon is not 1:1, the border is not a circle anymore. Here's an example: I'm currently using: HTML: .socials a(href='#') a(href='#')
Lan Mai
  • 365
  • 1
  • 5
  • 18
2
votes
0 answers

Using Font-Awesome with Sass

I want to set up Font-Awesome with Sass and I can't figure out what I'm doing wrong.I'm getting some bordered squares instead of the icons.Here's what I did: Downloaded font-awesome directory. Copied font-awesome.css in my css folder. Copied font…
2
votes
2 answers

How do I access Awesomefonts in Qt on OpenSuse

I wish to use some of the icons in fontawesome (http://fontawesome.io/icons) in my Qt Application, I have extracted the fontawesome-webfont.ttf file into usr/share/fonts.I tried searching online but could n't find any such examples.This is a sample…
2
votes
1 answer

Font Awesome Icons Not Showing On IE and Firefox

Simple question, yet I cannot seem to find a working solution anywhere. I am using the Font Awesome Library, saved in a file, in a static site. I put in the following code into a login link. Which on Google Chrome brings…
user7174959
2
votes
1 answer

How to insert font-awesome icons in MathJax?

I want to write a formular with MathJax where I use a font-awesome icon as a replacement for an mathematical symbol. If I try something like $$6 \cdot + 5 \cdot
Adam
  • 25,960
  • 22
  • 158
  • 247
2
votes
0 answers

Adding a fontawesomeicon to a label graphic using FXML

Introduction I am trying to build a JavaFX gui inspired by the demo of JFoenix from their github page. The demo uses a few outdated dependencies and one of those dependencies is the FontAwesomeFX library (link to the fontawesome page). Description…
Sander_M
  • 1,109
  • 2
  • 18
  • 36
2
votes
0 answers

how to style google map marker using SebmGoogleMap

I'm trying to use font awesome icons with google map api on-top of Angular2 application, for the map I'm using angular2-google-maps by Sebastian Müller https://angular-maps.com/. I want to use a custom map marker using some icon library (for example…
CodeHahn
  • 279
  • 6
  • 17
2
votes
0 answers

need to display fa-blogger icon

I want to add fa-blogger icon same as fa-github icon. But fa-blogger not working for me .
Shefalee Chaudhary
  • 582
  • 12
  • 28
2
votes
2 answers

Style Font Awesome list every other bullet color

I am trying to set every other color of a list using a Font Awesome icon as the bullet. However, instead of it styling every other bullet, it styles all the bullets. If you switch back and forth between (odd) and (even) :nth-child, you can see all…
Trisha
  • 539
  • 3
  • 10
  • 30
2
votes
2 answers

Font Awesome Snapchat Icon Not Showing

The snapchat icon for font awesome wont show on my clients live website but it works on my localhost. I'll give loads of rep to whoever helps me figure this out. I've done the obvious and updated to the latest versions and made sure everything is…
user3479267
  • 202
  • 9
  • 32
2
votes
0 answers

Using react-icons package with react-boilerplate

When I install react-icons and trying to import import FaBeer from 'react-icons/fa/beer'; I get an error Module parse failed: /Users/firfi/work/react-redux-todo/node_modules/react-icons/fa/beer.js Unexpected token (8:12) If I change import to…
Igor Loskutov
  • 2,157
  • 2
  • 20
  • 33
2
votes
2 answers

FontAwesome Stack Replace on Hover

So I've been trying to do a quick animation that replaces an entire span on hover but I can't seem to get it to work. How should I approach going about replacing a span on hover?

I need this replaced...

oreo27
  • 45
  • 4
2
votes
2 answers

GIT how to set .gitconfig to recognize *.woff files as binary

How to set .gitconfig to recognize *.woff files ? I try with: *.eot binary *.ttf binary *.woff binary *.woff2 binary but I've got fatal: bad config file line 15 in .git/config Can you help me, please ? Thanks in advance.
Whisher
  • 31,320
  • 32
  • 120
  • 201
2
votes
1 answer

Font Awesome icon not display on IE compatibility view

I have used Font Awesome icon in my project. The HTML page generate from XSL Template as follows-
Daniel Smith
  • 1,626
  • 3
  • 29
  • 59
1 2 3
99
100