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

Font in CSS is not working

What is wrong with my code? The font isn't working. I used both font-family: "Pacifico", and font-family: 'Pacifico' and ' but neither are working.

h1 { color: #edded7;

text-align: center;

z-index: 20;

font-size: 7em;

font-family: "Pacifico", cursive; }

3 Answers

write sans serif instead of cursive, as that should be put in font-style instead of family :)

Thank you Camilla, I did that, the font changed but not quite into the font I chose ... any idea why?

Did you link to the font in your html? Pacifico is not a web-safe font as far as I'm concerned :)

I thought I did link the font, but I'm just going to have another look at my link and read a little more about that. Thank you very much