rs79.vrx.palo-alto.ca.us

CSS Quick Reference : gradients : color
CSS Quick Reference
Three: Gradients : color

Between 2008 and 2012 gradients finally appeared in web browsers although as of 2012 they still all required a browser prefix.





Fig 6.0 You can the specify color as hex, decimal rgb, or rgba (with alpha channel - transparency)
linear-gradient(rgb(0, 0, 0), rgb(127, 127, 255));
linear-gradient(rgb(0, 0, 0), rgba(127, 127, 255, 0.5));
linear-gradient(rgba(0, 0, 0, 0.5), rgba(127, 127, 255, 0.5));
linear-gradient(rgb(0,0,0), rgba(0, 0, 0, 0.5) 25%, rgba(127, 127, 255, 0.5) 50%, rgb(127, 127, 255));