background-style

Everyone will have surely noticed the prevalence of simple gradients all 
over sites these days, it seems that a more sensible way of creating 
graduated backgrounds would be via css. This would be quicker, easier 
and scale better than raster graphics.

If could work such as (to produce a black to white effect)

background-style:gradient;
background-color:#000 #FFF;

or such as this for a rainbow gradient.

background-color:#F00 #FF0 #0F0 #0FF #00F #F0F;

radial gradients could also be rendered with
background-style:radial-gradient;

Maybe background position could be used to change the center point.

I don't think any more control over the gradients appearance would be 
necessary.

Cheers,
Steve.

Received on Saturday, 2 August 2008 06:28:32 UTC