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 trial

CSS Sass Basics Add Reusable Logic to Your Sass Advanced Mixins Challenge

Michaela Babic
Michaela Babic
7,720 Points

Sass Challenge 4 of 4

I cannot for the life of me get this last answer!

Switch the order of the square arguments. Be sure to specify the variable for each argument.

style.scss
@mixin square($size, $color: black){
    height: $size;
    width: $size;
    border: 1px solid $color;

 .box 
 @include square {
 $color:red; $size:10px;}
 }

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I'd say you're doing great so far! Three out of 4 isn't bad at all. On the fourth step we are to include the same mixin, but this time we rearrange the orders of the arguments. Arguments are what we're sending in to the square mixin. It should look very similar to what you had on step 3. The only difference here is that because it's out of order we have to explicitly say which parameter is which. Also, you've managed to somehow change your size from 50px to 10px which will also cause the challenge to fail.

The line you're looking for is:

 @include square($color: red, $size: 50px)

I'll leave the placement up to you. Hope this helps, but let me know if you're still stuck! :sparkles: