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

not able to solve question 2....

where should I use the size: 50px in second term of challenge...?

What's the code that you have so far for task 2? What did you do with the background color?

I end up with this: .menu_button { @include button ($size:50px); background: #369; }

2 Answers

the mixin that you wrote in task 1 takes in two arguments, the size and the color. So you should be able to pass in the two values into your button mixin.

Do you have something like this from task 1?

@mixin button ($color, $size) {
    background: $color;
  width: $size;
  height: $size / 2;
}

When you go to include your mixin inside your .menu_button rule, all you have to do is pass in your two values as arguments to that mixin.

Something like:

.menu_button {
    @include button (argument1, argument2);
}

Replace argument1 and argument2 with the appropriate values.

Thanks for the help........It really works.......