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 trialJoel Porretta
5,079 PointsProblem with CSS gradient task.
Currently on the first task in the gradient section of CSS Basics. My code is as follows: .main-header { background-image:linear-gradient(180deg, steelblue, darkslateblue 90%); }.
For some reason, when I click on check work it tells me that task 3 is no longer passing. I checked further and found it had something to do with the 180deg part. After double checking online, I found nothing apparently wrong with my code. Has anyone else encountered this and if so, how was it solved?
1 Answer
Justin Warren
7,805 PointsHi Joel,
So you are really close! This is what you would need to input:
.main-header{
background-image: linear-gradient(to top, steelblue, darkslateblue 90%);
}
Here is a good supplement resource for gradients:
https://www.w3schools.com/css/css3_gradients.asp
Happy coding!
Joel Porretta
5,079 PointsJoel Porretta
5,079 PointsThanks Justin, got it working now :)