Question

I have this code for a transparent rgba gradient but one works and the other doesn't and I can't figure out why

Working one

background-image: -webkit-linear-gradient(left , rgba(189,206,226,0.6) 0%, rgba(191,217,242,0.6) 32%, rgba(14,94,95,0.6) 65%);

Non working one

background-image: -webkit-linear-gradient(left , rgba(189,206,226,0.6) 0%, rgba(191,217,242,0.6) 32%, rgba(14,94,95,0.6) 60%), rgba(14,94,95,0.6) 5%);
Était-ce utile?

La solution

maybe take out the ) after 60%

the Non-working one has rgba(14,94,95,0.6) 60%) replace it with rgba(14,94,95,0.6) 60%

Autres conseils

Remove the ) after 60%) in the 2nd rule

background-image: -webkit-linear-gradient(left , rgba(189,206,226,0.6) 0%, rgba(191,217,242,0.6) 32%, rgba(14,94,95,0.6) 60%, rgba(14,94,95,0.6) 5%);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top