Icons do not appear - Awesome Font

2

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

It's the same as this topic: LINK

As it was not fixed, I posted it again for help. Would anyone know why?

In my head is 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>

The only CSS I have on my site is the CSS of my reset:

/*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;}
    
asked by anonymous 18.09.2017 / 05:53

1 answer

2

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

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

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

I believe that font-weight and font-size can also cause you problems. If it happens, just do the same as I did above.

    
18.09.2017 / 06:24