+ 1
Why isn't my linear gradient working?
Haven't used css 4 awhile but I need it now... any help plz? https://code.sololearn.com/W3HD8OG0zVQ1/?ref=app https://code.sololearn.com/W4OU5UGIgxGi/?ref=app
1 Answer
+ 5
They work fine. You're just making all colors transparent with the "0" from rgba(x,y,z,0).
The a from rgba makes colors transparent, going from 1(full color) to 0(completely transparent)
In the first code you forgot the "-" from linear-gradient()