D
D
Denis Denis2015-10-02 18:55:01
css
Denis Denis, 2015-10-02 18:55:01

How to include different fonts?

Hello!
Connected 3 fonts RobotoBold, RobotoLight and RobotoThin via googleFonts.
Nothing further :(
Font if you put just Roboto, the browser changes the font
But how to give the element RobotoBold, for example?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cat Anton, 2015-10-02
@golovewkin

.RobotoThin {
    font-family: Roboto;
    font-weight: 100;
}

.RobotoLight {
    font-family: Roboto;
    font-weight: 300;
}

.RobotoBold {
    font-family: Roboto;
    font-weight: 700;
}

A
Anton Shamanov, 2015-10-02
@SilenceOfWinter

google "google fonts"

D
Dmitry Pyrkin, 2015-10-02
@ps1panda

try to prescribe font-family for each font

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question