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 Improve Your Workflow with Sass Pass Content Blocks to Mixins

Do you need @content?

Hi all, I've seen a response to this question but I'm still confused - why do you need to use @content when you could just add the additional properties above the @include part of the declaration you're applying your @mixin too? I guess there's something I'm missing here!

Hi Robin,

I think it's more of a style choice. For me, it makes sense because the extra rules are only there to make sure the skewed @mixin works. @content gives us the ability to modify our @mixins as we need them and in this case we needed extra rules to make sure the skew showed up on the page. For me it makes sense semantically to have those two rules grouped with the @mixin.

I hope that helps! Happy coding!