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 trialChinedu Okonkwo
Front End Web Development Techdegree Student 9,451 PointsNot sure why my answer isn't correct? Says I'm missing two arguments in my mixin when I'm not.
see title
@mixin square($color: black, $size) {
width: $size;
height: $size;
border: 1px solid $color;
}
.box {
@include square($size: 50px, $color:red);
}
1 Answer
Ryan Groom
18,674 PointsChinedu Okonkwo The assignment is being picky about the order of your arguments, when declaring the mixin, swap it so that it says @mixin square($size, $color: black).
Let me know if that works!
Chinedu Okonkwo
Front End Web Development Techdegree Student 9,451 PointsChinedu Okonkwo
Front End Web Development Techdegree Student 9,451 PointsThis worked!, thanks for the assist.