Answer the question
In order to leave comments, you need to log in
How to make gradient cross browser?
Please tell me how to rewrite this gradient, but without the webkit prefix, something doesn’t work for me:
background: -webkit-gradient(linear, left top, left bottom, from(#ffea00),color-stop(0.85, #ffd000),to(#ffd900));
Answer the question
In order to leave comments, you need to log in
The original of your gradient looks like this:
Then take an autoprefixer , paste the original there, set which browsers you are going to support and get the result.
Run your code through this service autoprefixer.github.io/en
Don't forget to specify how many versions back you need support.
It 's been a while since I've seen a linear gradient webkit written this way... (there's just another -webkit-linear-gradient)
It turns out that you go from light yellow to dark yellow, but in the center the color changes?
In short, how is it?
PS here are all the prefixes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question