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
Alberto Jose Cerrato Estrada
8,709 PointsCompass Code Challenge doesnt work
hello guy i cant make the code challenge work. i think im doing it good and i keep getting error.
This is the challenge: http://teamtreehouse.com/library/getting-started-with-compass
here is my code:
// Imports @import "compass/css3"
// Variables
// Page Styles body { @include background(linear-gradient(#3D69B5, #1A335E)); }
this is the error: Bummer! Invalid CSS after "body ": expected selector or at-rule, was "{"
2 Answers
Alberto Jose Cerrato Estrada
8,709 PointsSolved:
need a semi colon after import css3.
Ricky Catron
13,023 PointsI believe you have forgoten a semicolon after your import.
This code passed the second part for me:
/* Write your SCSS code below. */
// Imports
@import "compass/css3";
// Variables
// Page Styles
body {
@include background(linear-gradient(#3d69b5, #1a335e));
}