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 trialJosh Hicks
14,146 PointsThe mixin should use the value in $make as the name of a new class. The class should have a 1px solid black border.
What am I doing wrong here?!
@mixin cars($make, $color) {
$make {
border: 1px solid black;
}
}
3 Answers
James Barnett
39,199 PointsYou forgot about the interpolation for the class name. Check out video at time index 1:20 for the proper Sass syntax.
Elizabeth BABYCH
6,993 PointsI'm assuming you had your 'a-ha' moment by now, but just in case, the interpolation needs to be added, like what James said.
@mixin cars ($make, $color) { .#{$make}{ border: 1px solid black; } }
Derek Etnyre
20,822 PointsTry specifying the black color as #000 and see if it likes it any better.
border: 1px solid #000;