material-design-iconic-font icon indicating copy to clipboard operation
material-design-iconic-font copied to clipboard

Use the font as content in CSS

Open m-o-leary opened this issue 7 years ago • 4 comments

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

m-o-leary avatar Jun 13 '17 20:06 m-o-leary

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

Cleman25 avatar Jun 14 '17 16:06 Cleman25

Hey, that doesn't appear to work either

m-o-leary avatar Jun 14 '17 21:06 m-o-leary

You have to use quotes.

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

max-ci avatar Jun 14 '17 22:06 max-ci

Is there an answer to this?

asaf147369 avatar Sep 20 '18 11:09 asaf147369