Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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: