CSS Filter question

U

usenet

I would like to use the filters in IE6/IE7 to change the foreground
property of an image. I have a two colour GIF image (e.g. a black
square with a white transparent background) and I would like to change
the image to make the black square red, blue, green etc.

I have tried things along this line:

<img src="square.gif" style="FILTER: Mask(Colour=#FF0000")>

This changes the background colour to red and makes the foreground
colour transparent whereas I just want to change the foreground colour
and leave the background colour transparent.

Any ideas?
 
U

usenet

I would like to use the filters in IE6/IE7 to change the foreground
property of an image. I have a two colour GIF image (e.g. a black
square with a white transparent background) and I would like to change
the image to make the black square red, blue, green etc.

I have tried things along this line:

<img src="square.gif" style="FILTER: Mask(Colour=#FF0000")>

This changes the background colour to red and makes the foreground
colour transparent whereas I just want to change the foreground colour
and leave the background colour transparent.

Any ideas?

I have figured this out. I had to make my foreground colour
transparent.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top