W3C home > Mailing lists > Public > www-style@w3.org > August 2008

background-style

From: Stephen <w3mail@jixor.com>
Date: Sat, 02 Aug 2008 16:27:33 +1000
Message-ID: <4893FE55.3060105@jixor.com>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT