Welcome to the Treehouse Community
Looking to learn something new?
Problem with my linear-gradient
Hi, this is my background for the header element:
background: url("img/showcase-background.jpg") no-repeat center center/cover;
I want to put linear gradient over it that will come from the top and end after 20% of the element's height. What should be the second value (instead of that pink color) for gradient to end? Also this code does not work, why? :
background: linear-gradient(black, pink 20%), url("img/showcase-background.jpg") no-repeat center center/cover;
Steven Parker216,017 Points
To make it start black and fade out, then instead of "pink" use "transparent".
And the code seems OK, so perhaps there's an issue with the code near it. Post the whole code here if you'd like us to check it.