Icons do not appear - Font Awesome

Asked

Viewed 8,172 times

2

The icons used from the awesome font do not appear on my site, it is just a few squares, I do not understand why.

It’s like this topic: LINK

As it was not solved, I posted again to ask for help. Someone would know why?


In my head is with a CDN link:

<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-
awesome/4.7.0/css/font-awesome.min.css">
</head>

I’m using in TAG <i>

<i class="fa fa-facebook-official" aria-hidden="true"></i>

Unico different CSS that I have on my site is my reset CSS:

/*RESET CSS*/
*, *:after, *:before{
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0em;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
h1{font-size: 2em;font-weight: 300;}
h2{font-size: 1.8em;font-weight: 600;}
h3{font-size: 1.5em;font-weight: 800;}
hr{border-color: rgba(237, 234, 234, 0.18);}
p{margin-bottom: 15px;}
b,strong{font-weight: bold;}
mark{padding: 5px 10px; background: #eee;}
ul{list-style: none;}
img{border: none;max-width: 100%;vertical-align: middle;}
small{font-size: 0.75em;color:#555;}
a{text-decoration: none;color: #09f;}
a img{border:0;}
i{color:#FFF;}

1 answer

3


In your style sheet you are using the universal selector, *, and subscribing to the font-family for Open Sans. The problem is that Font Awesome is a font.

You can choose to withdraw the line font-family: 'Open Sans', sans-serif; CSS or change its selector, for example:

body {
    font-family: 'Open Sans', sans-serif;
}

I believe that the font-weight and the font-size may also cause you problems. In case it happens, just do the same as I explained above.

  • My dear, my dear, I didn’t even realize, thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.