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 Getting Started with Compass CSS3 without the Vendor Prefixes

Kleo Petroff
Kleo Petroff
5,726 Points

Stuck on second part of the challenge

I need to create a compass linear-gradient from top to bottom with the colors #3d69b5 as a starting color and #1a335e as an end color. For some reason, my code is not working and I don't actually know why.

body {
  @include background(linear-gradient(top, #3d69b5, #1a335e));

What am I doing wrong here?

Hello Kleo, This question came up in a previous Forum question. The answer was to eliminate the "top" from the parameters. Follow this link to see the original post or copy your code and paste it into your browser for a search:


Kleo Petroff
Kleo Petroff
5,726 Points

Thank you Anna, removing the top from the parameter worked!