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 do I pass Task 2 of this challenge?

The challenge is under CSS Foundations - Selectors - Type, Class, and ID Selectors. It keeps failing me, and I don't understand why. It says to select the h1 on the page and change its background color to dark blue, so I type in:

h1 { background-color: darkblue; }

It doesn't seem to work. Is this a bug, or am I being stupid? Please help! :'(

2 Answers

Hi Sophie,

The challenge says to change the color to darkblue, not the background color.

h1 { color: darkblue; }

Ohhh. Thanks! I feel like a total dummy now, LOL.

Dai Phong
Dai Phong
20,395 Points

Try to change background-color to background:

h1 { 
background: darkblue; 
}