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 trialBrendon Brooks
8,802 PointsOn 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
Scott Peake
17,052 PointsHey 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
8,802 PointsThat worked! Thanks Scott. Happy New Year to you as well.
.main-header { background-image: linear-gradient( to top, steelblue, darkslateblue 90%); }
Scott Peake
17,052 PointsNo 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
8,802 PointsScottPeake 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."
Scott Peake
17,052 PointsI 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!!