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

Robert Cottam
Robert Cottam
31 Points

what have i done wrong

h1 { font-family: 'Changa One', sans-serif; font-size: 1.75em; font-weight: normal; }

1 Answer

Laura Cressman
Laura Cressman
12,548 Points

Hi Robert, I just attempted the code challenge and passed with the following code:

h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75em;
  font-weight: normal;
}

I'm not sure what is going on with your code, but did you remember to include the Google Font in the head tag? I pasted this one in:

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

And since it was called 'Roboto', that was the name I used in the CSS. Perhaps your font name from Google fonts doesn't match what you are typing? Let me know if any of those help! Keep smiling, Laura:)