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 trialJacob Arriola
12,805 PointsCan't complete task 4
Hey there,
I'm stuck completing task 4, adding color:purple to the .footer div. It's weird b/c when I preview the page, it renders correct. I've tried to put the .footer & mark up within the a tag and within > a tags as well.
/* Write your SCSS code below. */
p {
a {
color: red;
.footer & {
color: purple;
}
}
a {
color: blue;
&:hover {
opacity: 0.5;
}
}
}
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Jacob,
The challenge simply wants you to be more specific You should select the div with a class of footer not just any element with a class of footer.
It will pass whether you nest it in the a
rule or the > a
rule.
Jacob Arriola
12,805 PointsAwesome. Thanks for the clarification, Jason.
I followed your advice and used div.footer instead of .footer and it worked! Thanks!
Jason Anello
Courses Plus Student 94,610 PointsYou're welcome.