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!
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
maithreya reddy addula
3,761 PointsGot Stuck at the sass challenge
We want to add an exception for <a> tags that are are in the <div> with a class of '.footer': those links should be purple. Use the post-selector ampersand to achieve this.
my Code:
p {
a {
color: red;
.footer
}
> a {
color: blue;
.footer & {
color: purple;
}
&:hover {
opacity: 0.5;
}
}
}
could not figure it out. may be i am over thinking.
2 Answers

Robbie Green
15,459 PointsJust did some searching and found this post: https://teamtreehouse.com/forum/sass-selector
Helped me out!

Robbie Green
15,459 PointsI'm having the same problem.
maithreya reddy addula
3,761 Pointsmaithreya reddy addula
3,761 Pointsthanks man got it