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 (retired) Variables, Mixins, and Extending Selectors The Power of Mixins

Mark Mueller
Mark Mueller
6,635 Points

Small sass quiz #2 problem-- following code placement from video doesn't seem to work.

here's the code: @mixin button ($color, $size){ background: $color; width: $size; height: $size *.5; } .menu_button { @include button (50px); background: #369; }

2 Answers

David Valles
David Valles
18,487 Points

Mark, the mixin is setting the background color. when you call the mixin, you need to pass two values in.

@include button (#369,50px);

Hope that helps!

Mark Mueller
Mark Mueller
6,635 Points

That helps-- Thanks David Mark