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 trialPratibha Soni
7,561 Pointsnot able to solve question 2....
where should I use the size: 50px in second term of challenge...?
Pratibha Soni
7,561 PointsI end up with this: .menu_button { @include button ($size:50px); background: #369; }
2 Answers
Jason Anello
Courses Plus Student 94,610 Pointsthe 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.
Pratibha Soni
7,561 PointsThanks for the help........It really works.......
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsWhat's the code that you have so far for task 2? What did you do with the background color?