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

CSS Sass Basics (retired) Advanced Sass Concepts Advanced Mixin Arguments

Errors 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

It did not help. I just rewrite the code again. It worked. I couldn't find reason.

Change background to background-image