Convert color image png into color css gradient -


i want convert png image css gradient color. how can if have png file?

image used header repeat-x

simply use gradient css rule?

#grad {      background: linear-gradient(black, white); /* standard syntax */  }    #grad2 {    background: red; /* browsers not support gradients */    background: -webkit-linear-gradient(red, yellow, green); /* safari 5.1 6.0 */    background: -o-linear-gradient(red, yellow, green); /* opera 11.1 12.0 */    background: -moz-linear-gradient(red, yellow, green); /* firefox 3.6 15 */    background: linear-gradient(red, yellow, green); /* standard syntax */  }
<div id="grad">    <br><br>  </div>    <div id="grad2">    <br><br>  </div>

some reading: css gradients


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -