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 Basics - Code Challenge Glitch (Gradients)


For the CSS Basics module, the Code Challenge on Gradients is giving me an error message when I don't think it should be. Task 3 in the code challenge is asking me to add steelblue as the first color stop for our linear-gradient. I have done this, so I am confused as to why I am still receiving an error message that says "Bummer! Make sure you're setting the first color stop value to 'steelblue'."

Is this a glitch? My answer to the task is below, which seems correct:

.main-header { background-image: linear-gradient(top, steelblue, darkslateblue); }

2 Answers

Geovanie Alvarez
Geovanie Alvarez
21,500 Points

In your code just remove the top

.main-header { 
background-image: linear-gradient(steelblue, darkslateblue);  /*<----- here remove the top*/

Thanks! That did the trick!