Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Customizing Colors and Fonts Add Fonts

Font-family in CSS

h1 { font-family: 'Antic Slab', serif; margin: 10px 0; font-size: 1.75em; }

I am having a hard time with the font-family.

3 Answers

Cesar Vanbuskirk
Cesar Vanbuskirk
6,672 Points

Since this is a Google font make sure you have this link tag in the head section <link href='http://fonts.googleapis.com/css?family=Antic+Slab' rel='stylesheet' type='text/css'> Hope that fixes it.

Cesar Vanbuskirk
Cesar Vanbuskirk
6,672 Points

<link href='http://fonts.googleapis.com/css?family=Antic+Slab' rel='stylesheet' type='text/css'>

If you can use a different font if you don't want the trouble.

Thanks guys it still didn't work on here, but it works on my site.