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

Christina Nairn
PLUS
Christina Nairn
Courses Plus Student 5,239 Points

Cannot get the CSS first level headline answer correct.

QUESTION: In your CSS, apply your font to the first level headline using font-family. Include a sans-serif fallback.

ANSWER h1 { font-family: 'Roboto'; sans-serif; }

What am I doing wrong?

Hugo Paz
Hugo Paz
15,622 Points

Try

h1 {
 font-family: 'Roboto', sans-serif; 
}

You separate fonts with commas.

3 Answers

Sean T. Unwin
Sean T. Unwin
28,690 Points

You have a semi-colon between 'Roboto' and sans-serif. It needs to be a comma.

h1 { font-family: lato', sans-serif; }

Sean T. Unwin
Sean T. Unwin
28,690 Points

You have a single quote at the end of lato, but not at the beginning.

ProTip: You don't need to use quotes at all for single word fonts.

i am also having a challenge on that one