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 trialAshley Wile
8,452 PointsThis should be so easy?
I cannot make it past step 2 of the class and ID challenge. Step 2 works when I run it but it will not pass me to move onto the next step. It keeps saying to make sure I am typing darkblue?
Ashley Wile
8,452 PointsThere is a h1 element inside a body element. The body element was changed to lightblue and the h1 element was changed to darkblue. The body passed while the h1 failed the challenge. Why?
body { background-color: lightblue; } h1 { background-color: darkblue; }
4 Answers
Stone Preston
42,016 Pointsyou are not asked to set the background-color
attribute of the h1, you are asked to set the color
attribute. Thats why you are not passing. You need to use color, not background-color
Ashley Wile
8,452 PointsThere is a h1 element inside a body element. The body element was changed to lightblue and the h1 element was changed to darkblue. The body passed while the h1 failed the challenge. Why? body { background-color: lightblue; } h1 { background-color: darkblue; }
Ashley Wile
8,452 PointsIt asked the same question for body but it wouldn't pass me until I set the background-color! Weird...I am trying it now :)
Ashley Wile
8,452 PointsYou are totally right! I am tired and I think my ADD is beginning to show. Thank you for your help!
Stone Preston
42,016 PointsStone Preston
42,016 Pointscan you post the code you are using. you will need to format it using markdown. there is a markdown cheatsheet in the bottom right of the text box or you can watch the tips for asking questions video on the right side of the page