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

Mixin "column-count/gap" Compass Problem

I'm stuck on this question for Compass that asks, "Finally, use mixins to set the column count of .main-content to 2 columns and the column gap to 2em." I've tried several different ways, but here's what I think is right:

// Imports @import "compass/css3"; @import "compass/utilities"; @import "compass/layout";

.main-content { @media (min-height: 769px) { @include column-count(2); @include column-gap(2em); } }

Yet, it says:

Bummer! Invalid CSS after "..., "#my-footer")": expected selector or at-rule, was "@mixin column-c..."

Please help! Thank you. :)

Can you show what is after #my-footer?

1 Answer

Oh, huh. I got it fixed. I guess it was just a glitch. I moved it up a bit in the file, and then it worked.