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 trialAtanas Sqnkov
14,981 PointsCode 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);
}
Atanas Sqnkov
14,981 PointsNext, 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
Wayne Priestley
19,579 PointsThe 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.
Atanas Sqnkov
14,981 PointsTried it multiple times. Also - many of the mixins and imports that are being shown in these exercises are missing from the official compass documentation.
Wayne Priestley
19,579 PointsIf 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.
Atanas Sqnkov
14,981 PointsI woke up this morning, entered the same code and it worked. This is strange.
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsHi Atanas, can you post the whole question the challenge is asking please.