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 trialRajasekhar Reddy Nalla
7,894 PointsI am not understanding this
I am not understanding this
5 Answers
Steven Parker
231,269 PointsThe challenge asks: "Use a nested selector to say all <a> tags within <p> tags are red."
Nesting is simply enclosing one selector inside another. So in this case it would be:
p { a { color: red; }}
Which, when compiled into plain CSS, becomes:
p a {
color: red;
}
Konrad Pilch
2,435 PointsWell, clearly he don't understand this :D So he provided enough information to some level.
Just re-watch the video :)
Sergey Podgornyy
20,660 PointsI also don't understand your question =)
Rajasekhar Reddy Nalla
7,894 PointsNot getting the solution for 4th challenge: We want to add an exception for <a> tags that are in the <div> with a class of .footer: those links should be purple. Use the post-selector ampersand to achieve this.
and my code snippet for the remaining 3 are:
1st challenge. */ p { a { color: red; } } / 2nd challenge. */ p {
a { color: blue; /* 3rd challenge. */ &:hover{ opacity: 0.5; } } }
for the 4th challenge im not able to complete the challenge?. Note: seems treehouse not adding the code once we click on 'Get Help' button.
Rajasekhar Reddy Nalla
7,894 PointsI got the solution for the 4th challenge:
div.footer & { color: purple;}
Thanks all.
Jeff Lemay
14,268 PointsJeff Lemay
14,268 PointsFYI, it's hard to help when you don't share any information in your post.