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

Andrew Lennen
Andrew Lennen
11,561 Points

Font Code Challenge

what am i missing here?

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

it keeps just saying make sure i set 1.75em

2 Answers

I'm wondering if you maybe have sone invisible characters in there from a copy-paste or something because i was just able to pass the code challenge with exactly what you posted.

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

Let me know if you continue to have issues.

Andrew Lennen
Andrew Lennen
11,561 Points

I managed to fix it. After an age trying on my Mac laptop using Chrome i went onto a PC, did the exact same things and it worked.

Thanks both of you for the assistance though ^ ^

James Ingmire
James Ingmire
11,901 Points

You need to use the short hand i presume e..g

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

The correct order is:

 font: font-style font-variant font-weight font-size/line-height font-family;