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

General Discussion

Problems w/ Sass Code Challenge#2

For the Sass code challenge on the 2nd question http://teamtreehouse.com/library/advanced-nesting,

It prompts me to: Add another nested selector which makes all tags which are direct children of <p> tags blue. I thought about it & entered: ```p { a { color: blue; } a { color: red; } }

Realizing that probably wouldn't be correct, I saw in the lesson that he implemented "html.csscolumns & {".
I tried that prior to making the anchor red as well as afterward. Neither syntax worked. I tried implementing the > before the anchor tag at the top all while knowing that, that would isolate that instance of the anchor & not the entire remainder of them whenever they were sought out. Also bearing in mind that it was asking me for "direct children". 

What it was telling me was that when I'd type in something which might have been correct, it negated my previous task which was correct. That was to " make all of the <a> tags nested inside the <p> tag, red.
So I even thought about going back to Guil's lesson where I inserted an "a span" but I know this answer deals with what I'm learning now which is Sass. Can anyone give me a hint?

3 Answers

I think you mis-understanding the question, try this

p a { color: red; } // Challenge 1

p > a { color: blue; } // Challenge 2 ">" denotes direct children

I suspect you were trying to alter challenge 1 in challenge 2

Hi Adam: Thanks for the guidance but it still seems to be giving me a problem. Yes I was attempting to alter Challenge 2 in 1 but when I followed what U told me to do, which seemed like it would work, it's still giving me a problem.

Sorry, somehow I got pulled in on this thinking it was my own post. I tried to delete my irrelevant responses but was unable to.