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

Brendon Brooks
Brendon Brooks
8,802 Points

On the Gradient Code Challenge in CSS Basics, I keep on getting an error that states that Task 3 is no longer responds.

On the Gradient Code Challenge in CSS Basics, I keep on getting an error that states that Task 3 is no longer responds when I'm on the fourth question. Please advise.

3 Answers

Hey Brendon!

Linear gradient syntax is rough! Without a snippet of the code you are using for your answer, I am not sure what part is holding you back, but I am assuming it has to do with the gradient direction. Check the use of the word "to" with your direction. Here's an example for you...

h1 {
  background-image: linear-gradient(to right, red, blue 85%);
}

Don't get discouraged! Gradients are a little rough, especially when dealing with radial values and transparencies, but they are very useful for responsive layouts. I use them a lot to replace backgrounds from web pages created in Adobe Illustrator (and such).

Keep up the good work!!

Brendon Brooks
Brendon Brooks
8,802 Points

That worked! Thanks Scott. Happy New Year to you as well.

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

No worries brother!!

When you get a chance, could you do me a favor and either vote or give "best answer" for my replies? I am working on fulfilling the requirements for the Treehouse Career Program (https://teamtreehouse.com/career) and trying to earn my "Contribute Knowledge" points.

PEACE!!

Brendon Brooks
Brendon Brooks
8,802 Points

ScottPeake Here's the code that is off the code challenge for Gradients:

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

I get the error "Oops! It looks like Task 3 is no longer passing."

http://imgur.com/eVCB6jp

I can see your bottom! Tee-hee-hee!

You don't need to include the word BOTTOM in your code. It is sort of "implied," just like in the example I included. You only need to specify "to where" you are going.

Happy New Year by the way!!