Convert color image png into color css gradient -
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
Post a Comment