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

Use 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
Michael Hulet
47,913 Points

The 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;
}

Thank you for your great advice !