Re: [gradients] basics

2009/11/9 Andrew Fedoniouk <news@terrainformatica.com>:
>> background: linear-gradient(rgba(255,0,0,0.5), rgba(10,10,10,.25)),
>> url(image.png);
>
> Why not
>
> background: url(image-with-that-gradient-on-top.png);
>
> ?
>
> This trick almost always requires knowledge about that
> image on your side so why not just to produce that image
> upfront?

Because you can't produce an image with a gradient portion with an
unknown width and unknown height, but a non-gradient portion with a
known width and a known height?


-- 
cheers,
-ambrose

Received on Monday, 9 November 2009 06:32:59 UTC