Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!