Use CSS 3 to create some nice subtle gradients; or very compelling gradients!
CSS 3 Gradients are not the simplest things by any means; there are several values to account for when projecting your gradient and it only worsens when working with radial gradients.
background:-moz-linear-gradient(pos, #AAA B, #XXX Y);
pos = the position of the first colour, giving direction to the gradient
#AAA = primary colour
B = where the fade begins (%)
#XXX = secondary colour
Y = where the fade begins (%)
The -webkit-gradient() is built slightly differently but works in the same manner, creating a start position and then the colors from() and to();
The above layer uses the following CSS 3
The above layer uses the following CSS 3
When it comes to radial gradients, I find trial-by-error works(!). As with the linear gradients, we create a central start point, a primary color and a secondary color. To get your gradient to just how you want it though, that will take some playing, saving and f5'ing - again and again and again.
The above layer uses the following CSS 3