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 beginner

hello, I am starting to learn Sass. I am actually blocked in the last test of the phase 1. I don't understand where I do a mistake for the last question of this test. is there a place where they show us where and why we are doing wrong??

I have to use the post-selector &, in order to make the link in the footer in purple. I did the following code and I don't understand why is wrong. Also it looks ok in the on the preview.

Somebody could help me?

/* Write your SCSS code below. */ p{ a { color: red; .footer & { color: purple; }

} }

p{ > a { color: blue; &:hover { opacity: 0.5;} } }

3 Answers

Without a link to the question its hard to establish what is required but here goes.

a { 
    color: red; 
    &.footer { color: purple; }
}

That's all i can figure out it may be from the code or maybe this

p a { 
    color: red; 
    &.footer { color: purple; }
}

Hope this helps

Tom Bedford
Tom Bedford
15,645 Points

I think this is the one where it's wanting you to be overly specific by selecting only divs with a class of footer. Check this thread.

Problem solved. :) Thanks to both of you to answer so fast.