PDA

View Full Version : VML fills-transparentt color?


Bobo
02-06-2005, 07:27 PM
In VML, how can you make a gradient fill have one of the colors be transparent? For example, an oval with a radial gradient from blue to transparent. I can't use white because it has to show through to a bg image.

I have tried
color2=""
color2="transparent"
color2="#00eeffff"

Mr J
02-06-2005, 08:01 PM
Not too sure here, haven't played with VML for a while but try the following


<v:oval style="position:absolute;left:250px;top:0px;width:160px; height:80px;z-index:2" fillcolor = "blue">

<v:fill type="gradientRadial" color2="blue" method="linear" angle="-45" focus="50%" focusposition="0.25,0.25" focussize="0.5,0.5" opacity="0.1"/>

</v:oval>

Bobo
02-06-2005, 09:20 PM
That is freakin' sweet!!! :D
I thought opacity applied to the entire gradient but that (your post) is exactly what I was looking for(one color only)! BTW, is there such a thing as opacity2?

Mr J
02-06-2005, 10:27 PM
Cool! :thumbsup:

is there such a thing as opacity2
not that I know of

Bobo
02-06-2005, 11:08 PM
OK, thanks! :)