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 trialIlhom Maksadkulov
3,121 PointsErrors in the Sass code
HI, everybody! I'm having some issues with Advanced mixins. Here is my code:
@mixin band($members...) {
@each $member in $members {
.bandmember.#{$member} {
background: url("images/#{$member}.jpg");
}
}
}
@include band(ilhom, nodira, iondamir, ozod);
@include band(maftuna);
Please, help me to find out where is the bug. Thanks.
2 Answers
Ilhom Maksadkulov
3,121 PointsIt did not help. I just rewrite the code again. It worked. I couldn't find reason.
Ben Rubin
Courses Plus Student 14,658 PointsChange background
to background-image