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 trialSergey Scherbo
5,784 PointsMixins and extending selectors (Sass)
Am i right, that there is no point to use mixins without parameters, cause we have extending selectors?
1 Answer
Iain Simmons
Treehouse Moderator 32,305 PointsNot quite. Extending has its limitations, like not being able to extend from within a media query, for one. It also groups selectors, which may not necessarily be what you're wanting.
Mixins are much more flexible, so it's likely if you can't do something with an extend, you'll want to use a mixin.
Taylor Espejo
3,939 PointsTaylor Espejo
3,939 PointsI suppose so, yeah