K
K
kudder12019-02-08 18:02:39
css
kudder1, 2019-02-08 18:02:39

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

4 answer(s)
A
Ankhena, 2019-02-08
@kudder1

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.

A
Andrey Fedorov, 2019-02-08
@aliencash

Run your code through this service autoprefixer.github.io/en
Don't forget to specify how many versions back you need support.

F
FeST1Val, 2019-02-08
@FeST1Val

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

A
Alexander Alekseev, 2019-02-08
@shure348

use a generator like
www.colorzilla.com/gradient-editor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question