Answer the question
In order to leave comments, you need to log in
Why don't they want to work 2 fonts at the same time?
There are 2 fonts that I include. But but they work current when I turn off one of them. What is the problem ? I connect like this:
@font-face {
font-family: ThinCondensed;
src: url(../Fonts/Exo2-ThinCondensed.otf);
};
@font-face {
font-family: LightCondensed;
src: url(../Fonts/Exo2-LightCondensed.otf);
};
А к элементам добавляю так :
.task_desc > h1 {
font-size:41px;
margin:21px auto;
font-family: LightCondensed;
}
.task_desc > ul > li > h1 {
font-family: ThinCondensed;
font-size:41px;
padding-left: 88px;
}
Answer the question
In order to leave comments, you need to log in
Define font like this
@font-face {
font-family: Condensed;
font-style: normal;
font-weight: 100; /* Thin */
src: url(../Fonts/Exo2-ThinCondensed.otf);
}
@font-face {
font-family: Condensed;
font-style: normal;
font-weight: 300; /* Light */
src: url(../Fonts/Exo2-LightCondensed.otf);
}
body {
font-family: Condensed;
}
.task_desc > h1 {
font-size:41px;
margin:21px auto;
font-weight: 300;
}
.task_desc > ul > li > h1 {
font-weight: 100;
font-size:41px;
padding-left: 88px;
}
It is not clear from the source data. Make an example on jsfiddle with such a situation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question