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 Compass Basics Compass Layout and Typography Compass Layout

Code challenge does not accept my valid CSS rules.

So I am getting this error:

Bummer! Invalid CSS after "// Page Styles": expected selector or at-rule, was ".main-nav {"

When my CSS is:

.main-nav {
  @include horizontal-list(5px, left);
}

Hi Atanas, can you post the whole question the challenge is asking please.

Next, use a utility mixin to make .main-nav a horizontal list. Set the float direction to left and the padding value to 5px.

1 Answer

The code you have looks valid for the question you've been asked Atanas.

Can i suggest copying it, then deleting it and paste it back in and see if that works.

Tried it multiple times. Also - many of the mixins and imports that are being shown in these exercises are missing from the official compass documentation.

If your not too far into the challenge I would suggest logging out, then back in and seeing how that works. I definitely think your code is correct.

I woke up this morning, entered the same code and it worked. This is strange.