Wyvh
Wyvh

Reputation: 73

Imported font doesn't work

I've been trying for hours to use the Titillium Web custom font but haven't succeeded. Here's what I tried:

None worked. Any idea ?

Thanks

Upvotes: 1

Views: 3958

Answers (1)

Shadow Fiend
Shadow Fiend

Reputation: 1829

 @import url('https://fonts.googleapis.com/css family=Titillium+Web:300,400,400i,600,600i,700');
#f{
  font-family: 'Titillium Web', sans-serif;
}
 #s{
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
}
 #t{
  font-family: 'Titillium Web', sans-serif;
  font-style:italic;
  font-weight: 700;
}
<!DOCTYPE html>
<html>
<head>

<title>Title of the document</title>
</head>

<body>
<p id="f">Sample</p>
<p id="s">Another Sample</p>
<p id="t">Last Sample</p>
</body>

</html>

Upvotes: 1

Related Questions