A
A
Alexander Lebedev2014-09-27 18:33:00
css
Alexander Lebedev, 2014-09-27 18:33:00

How to make web font work?

Good evening.
There is a site ndvmost.ru . It uses the Intro font in the buttons and titles. I used to pull it up from webfonts.ru , but it's ugly to load the comrades' servers, so I downloaded the font locally. It's in the " fonts/intro " folder, and I include it in the main stylesheet main.css with the line " @import "../fonts/intro/intro.css"; ". But nothing happens.
Question: what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aligatro, 2014-09-27
@sortarage

Why import, isn't it easier to just add:

@font-face {
    font-family: 'Intro';
    src: url('../fonts/intro/intro.eot');
    src: url('../fonts/intro/intro.eot?#iefix') format('embedded-opentype'),
         url('../fonts/intro/intro.woff') format('woff'),
         url('../fonts/intro/intro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question