Solved

font-awesome isn't properly shown.

Posted on 2014-11-18
5
186 Views
Last Modified: 2014-12-02
<i class="fa fa-user fa-2x"></i>

It does not properly shown, instead, there is a empty box with border in Chrome.
In mozilla firefox, there is an empty box with F0 01 characters inside of the box.
0
Comment
Question by:Nusrat Nuriyev
  • 2
  • 2
5 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40451453
Not enough info.  You have to have the 'font-awesome' files linked like it shows on the doc pages.  http://fortawesome.github.io/Font-Awesome/get-started/
0
 
LVL 14

Accepted Solution

by:
Edwin Hoffer earned 500 total points
ID: 40451531
Hello ,

First you have to link the font awesome file through, you can link it by many ways but I suggest you to use the below one in your head tag:

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

Open in new window


For font awesome code use:

<i class="fa fa-user"></i>

Open in new window


or if you want to use any class in font awesome tag then make a div and use the class in it instead of using in font awesome tag.

Thanks
Edwin
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40451676
I downloaded the font-awesome files and built a test page from their docs.  I put it up here http://www.yamiam.org/font-awtest.html so you can see it.  It's just an HTML page so you can view the source and copy it if you want.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40452629
http://www.i-olimp.az/new-register

Look at the element before "Contest selection"  Keyword
0
 
LVL 14

Expert Comment

by:Edwin Hoffer
ID: 40452646
Hello Nusrat,

Replace the below code:

<link rel="stylesheet" href="/ejudge/font-awesome.css" type="text/css">

Open in new window


to this one:

<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now