Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the font as content in CSS #117

Open
m-o-leary opened this issue Jun 13, 2017 · 4 comments
Open

Use the font as content in CSS #117

m-o-leary opened this issue Jun 13, 2017 · 4 comments

Comments

@m-o-leary
Copy link

Hi guys,

Awesome awesome library btw - completely replaced FA in all my projects!

I would like to use this in a content in css.

I have downloaded the fonts and have them on the same level as the css folder and the following code does not work, what am I doing wrong?

.thing::before{
    font-family: Material-Design-Icon-Font;
    content: "\f1f1"
}

The above renders a square.
Sorry for the remedial question

@Cleman25
Copy link

Try this:
font-family: "Material Icons";

@m-o-leary
Copy link
Author

Hey, that doesn't appear to work either

@max-ci
Copy link

max-ci commented Jun 14, 2017

You have to use quotes.

"font-family: Material-Design-Icon-Font;" or 'font-family: Material-Design-Icon-Font;'

@asaf147369
Copy link

Is there an answer to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants