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 trialjondalar Lee
1,585 PointsI am trying: .main-header{ background-image:linear-gradient(angle, color1, color-2); but steelblue is not working
I can not figure out why putting in the angle correct and color 1 and color 2 and the percentage in right it is not working
2 Answers
Vitor Freitas
3,579 Points"Finally, add the value that sets the gradient direction from bottom to top." You do not need an angle value for that, just add to top. The following code works. Gradients
.main-header {
background-image: linear-gradient(to top, steelblue, darkslateblue 90%);
}
Ted Sumner
Courses Plus Student 17,967 PointsYou can also use degrees in the following format: 45deg