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 trialJennifer Nordell
Treehouse TeacherI am truly stuck. What am I missing? :)
Hi there, everyone! I'm hoping that someone out there can help me. I'm desperately in need of a second pair of eyes on this. I've run my code through www.sassmeister.com and it outputs what looks to me to be the correct CSS required by the challenge. But I'm either missing something in the challenge specifications, the implementation, or the output. Can anyone see what I'm missing?
Any and all help is thoroughly appreciated!
.base {
width: 100%;
&__element {
background-color: blue;
&--modifier {
background-color: orange;
border-color: red;
}
}
}
2 Answers
miikis
44,957 PointsHey Jennifer,
The Challenge provided some placeholders that you were supposed to @extend. You can combine these @extends with Nesting and produce the output they want. As in, you don't need to write — or rewrite — any CSS of your own. Let me know if that helps ;)
jamesflint00
42,676 PointsJust replace the styling with extends.
.base {
@extend %base;
&__element {
@extend %element;
&--modifier {
@extend %modifier
}
}
}