V
V
Vkok2019-02-03 14:41:19
css
Vkok, 2019-02-03 14:41:19

Is it possible to include font awesome in CSS file?

Hello,
is it possible to include the font awesome icons directly in the CSS file, like a regular font, using the import url method. Help, please, to understand. For some reason, the font does not work - www.narcolog-24.ru should be displayed before each link:

a::before {
   font-family: FontAwesome;
   content: "\f0c1";
   padding-right: 0.5em;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2019-02-03
@boch112

Can. The code you provided is not on the page at all, if you add it manually in the inspector, everything works.
PS I see these styles in the file www.narcolog-24.ru/css/nar.css, but it has invalid content - you've done it with nesting and curly braces. That's why it doesn't work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question