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
Charlie du Plessis
1,093 PointsFont 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
Camilla Holst
8,876 Pointswrite sans serif instead of cursive, as that should be put in font-style instead of family :)
Charlie du Plessis
1,093 PointsThank you Camilla, I did that, the font changed but not quite into the font I chose ... any idea why?
Camilla Holst
8,876 PointsDid you link to the font in your html? Pacifico is not a web-safe font as far as I'm concerned :)
Charlie du Plessis
1,093 PointsI 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