ACs
ACs

Reputation: 1445

Display image with css content

I have to work on a symphony project written by others. I've investigated why some icons, like facebook icon or shopping cart icon won't display on IExplorer, when I found something I dont understand: The html and css below outputs a facebook icon and I don't know how?

HTML:

<i class="facebook-icon"></i>`

CSS:

.facebook-icon::before{
  content:"\e905";
}

What does this mean, how does this work?

Upvotes: 0

Views: 2792

Answers (1)

Juan&#237;n
Juan&#237;n

Reputation: 851

They are using a custom font in which the character \e905 is just a facebook icon

Upvotes: 2

Related Questions