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 trialJhon Doe
6,713 PointsUse the "lime" variable to set the color of every link/anchor tag on the site.
I keep getting this error message:
Bummer! There's something wrong with your Sass stylesheet. Please review your code and try again. Sass Error: Invalid CSS after "a ": expected selector or at-rule, was "{"
Here is my code:
/* Write your SCSS code below. */
$lime: #090
a {
color: $lime;
}
1 Answer
Michael Hulet
47,913 PointsThe answer to your problem is a simple one, but probably the issue that most commonly plagues developers around the world. You simply forgot a semicolon after defining your variable. This should work:
// Notice the ; at the end of the next line
$lime: #090;
a {
color: $lime;
}
Jhon Doe
6,713 PointsJhon Doe
6,713 PointsThank you for your great advice !