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!
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
Tadjiev Codes
9,623 PointsNext, use the & symbol to create the selector .icn-success. Set the color of .icn-success to green.
I'm really confused about this nesting selectors questions???
.banner {
padding: 1em;
background-color: lightgrey;
.button {
font-size: 1.5em;
}
}
.icn {
font-size: 1.25em;
&-.icn-success. {
color:green;
}
}
&-.icn-success. {
color:green;
}
1 Answer

KRIS NIKOLAISEN
54,939 Pointsicn is already included with the &
.banner {
padding: 1em;
background-color: lightgrey;
.button {
font-size: 1.5em;
}
}
.icn {
font-size: 1.25em;
&-success {
color:green;
}
}