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

HTML Build a Simple Website Styling Content Fonts and Colors

Tord Pedersen
Tord Pedersen
1,977 Points

Trouble with setting ’Nunito’ first in font-family?

Hi,

I can't solve the task of setting Nunito first in the font-family. Do anybody know what’s wrong? Do I have to change something in html as well? This is my code.

body { font-family: ’Nunito’, sans-serif; }

3 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

In your code the quote marks around Nunito aren't straight quote marks, they're curly quotes. When I copied and pasted your code into the challenge it failed, but when I changed them to straight quotes it worked:

body { font-family: 'Nunito', sans-serif; }
Tord Pedersen
Tord Pedersen
1,977 Points

Spot on! Thank you very much.

Haven't done the course you're on but the code looks fine. Are you importing the font from an external cdn like google fonts or font-face? if so I'd imagine that it's not grabbing the font and there's a problem with your link to the cdn.