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
Christopher Geary
4,531 PointsGlitch - Css Foundations - Challenge Task 2 of 6.
Could someone else just confirm this is correct, and they're getting the same thing. Or is it me being stupid?
The question that reads: Select the h1 on the page. Set its color to 'darkblue'.
The following code gives me the correct answer, but I believe this is incorrect:
body {
color: darkblue;
background-color: lightblue; }
However, I do know that this would in fact turn a h1 darkblue because of inheritance, but the question specifically states "select the h1" which I haven't done.
Am I just being picky?
2 Answers
Shawn Denham
Python Development Techdegree Student 17,802 PointsOdd that it validates given they way the other challenges work. I am with you, given the fact this is specifically asking for the H1 the answer should be
h1 {
color: darkblue;
}
but yes your code would be correct with inheritance.
Steven Prescott
19,206 PointsYes, you did in fact select the first headlines. Also, you changed the color to darkblue. Cool Beans.