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


Federico Krum
Federico Krum
6,625 Points

Bug in challenge check

In PHP Development, at Stage 5 - Customizing Color and Fonts, Challenge task 2 of 3:

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

if you write :

h1 { color: #fff; font-family: 'Changa One', sans-serif; }

instead of

h1 { font-family: 'Changa One', sans-serif; color: #fff; }

you get a wrong answer, even if it is perfectly equivalent.

Am I right?

2 Answers

Hi Federico,

You're correct that the order doesn't matter there. However, task 2 is only asking you to set the font-family and not the color. The color of the h1 and h2 are set further up in the css.

Perhaps you're just throwing off the challenge since it's only expecting to see font-family there. I don't know if I would call it a bug since you're adding in an extra property that it didn't ask for.

Federico Krum
Federico Krum
6,625 Points

You are right. Bug is between the chair and the keyboard ! I copied the h1, h2 and paste it to do the excercise and forgot to erase color declaration. Thanks