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 (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