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) Speeding up Workflow with Sass Creating a Color Palette

what does it exactly says- the 3rd question in "Creating a Color Palette" challenge?

I have tried many ways but still not working...... the last thing i tried was:

$complement: desaturate.complement(red, 10%);
a{
  color: lighten (red);
 background: $complement;
}

what is wrong in that ? can i get some explanation....

I have edited your post to add the correct MarkDown if you click edit now you can see how to embed code in the forum. Mainly adding (```) followed by the language then (```) again

James Barnett
James Barnett
39,199 Points

Adam Sackfield -

I fixed your markdown, you have to escape a ` with a \

Haha thanks James Barnett This is like MarkDown inception lol

1 Answer

So the third question is asking "Set the background of the <a> tag to be a 10% desaturated version of the variable, using the desaturate function. (HINT: desaturate works a lot like the lighten function - taking a color, then a percentage!)"

$complement: complement(red);
a {
    color: lighten(red, 5%);
  background: desaturate($complement, 10%);
}

You seem to have added the desaturate function in the variable rather than the BG :)