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

Brenda Krafft
Brenda Krafft
18,036 Points

"Preview" during code challenges doesn't seem to be working.

I'm on task 4 of 4 for his challenge, trying to turn color of the footer links to purple.

I'm having trouble getting the Sass right, so I decided to make sure my CSS was right first.

So I deleted all my CSS code, except for:

.footer a {color: purple;}

which I feel pretty confident about. But the Preview doesn't show the new purple color AND in fact still shows the styles from the code that I deleted!

Is anyone else having this problem?

Brenda Krafft
Brenda Krafft
18,036 Points

Hm... turns out my Preview doesn't work at all. The color links are always the same, even from the get-go when I restart the quiz.

Well... since I have you here, do you see what the problem with my answer might be? (see below)

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

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

4 Answers

Hi Brenda,

The preview doesn't seem to be working properly for me either. I know that you need to click the "refresh" button within the challenge if you want to see the most current code you have but that's not working for me when I change the link color.

For your question, the challenge wants you to be more specific. It's a div with a class of "footer". Not any element with a class of "footer"

What you have done will work in practice but this challenge wants you to be more specific.

Adama Sy
Adama Sy
7,076 Points

seems like a bug, it's the second question with the same problem in the forum, maybe you guys should look into technical support or something.

(MODERATOR) I mean should ask tech to check it out

Adama Sy
Adama Sy
7,076 Points

Click preview then refresh it to see what you just changed to work. Same as if you were using google chrome to test your code.

Hi Adama,

Did you try it out for this challenge? That's the way it's supposed to work but currently does not seem to be working.

Adama Sy
Adama Sy
7,076 Points

Click preview then refresh it to see what you just changed to work. Same as if you were using google chrome to test your code.

Brenda Krafft
Brenda Krafft
18,036 Points

Ah ha! Thanks for the "div" tip. Got it!

As for the Preview, the colors that show up right from opening the challenge are what they are supposed to be when I'm done. And now that I know I'm not clueless about how this is supposed to work, I feel better.

I'll send a message to support and see what they have to say.

Thanks!