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 Sass Basics (retired) Getting Started with Sass Advanced Nesting

Not sure what the answer is for task 4 in this challenge...

I've tried placing the sass for the purple link in multiple different places to see if the reason it isn't working is because the directions aren't clear about whether or not this exception should refer to all links or just links that are direct children of p, but although the code works I keep failing this stage.

This is the code I have for the purple link, and I currently have it nested under the styles for p a.

.footer & { color: purple; }

3 Answers

I agree with you that the instructions could be more clear. I think I originally passed it by nesting it in the direct child selector but I have found that it passes also when it is nested under the a selector which is where your currently have it. So leave it there but you can also try it again under > a to see.

The problem is that you're not being as specific as the code challenge requires. Try div.footer.

That stumped me for a little while.

I would think that since task 2 and 3 were dealing with the direct child links that we would still be working within that on task 4. But it should pass either way.

Ahh, that's it! Thanks so much, that was driving me crazy :)

You're welcome

Jason this worked! Thanks!