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 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!