Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set font-family as Opensans SemiboldItalic font

i want to change my font-family of a <span> tag into Opensans SemiboldItalic font. but i dont know how?

#footer .container span {
    font-family: 'Open Sans Semibold';
}
like image 325
Duc Hop Tran Avatar asked Dec 11 '22 21:12

Duc Hop Tran


1 Answers

You have to use font-weight and font-style.

font-family: 'Open Sans', Arial, sans-serif;
font-weight: 600;
font-style: italic;

Make sure you are calling the semi-bold italic font weight (600) as well:

<link href='//fonts.googleapis.com/css?family=Open+Sans:600italic' rel='stylesheet' type='text/css'>
like image 182
Samuel Liew Avatar answered Dec 28 '22 06:12

Samuel Liew