How to set font-family as Opensans SemiboldItalic font

Duc Hop Tran picture Duc Hop Tran · Aug 22, 2015 · Viewed 16.1k times · Source

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';
}

Answer

Samuel Liew picture Samuel Liew · Aug 22, 2015

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'>