CSS Filter question

Discussion in 'HTML' started by usenet@tynemarch.co.uk, Aug 2, 2007.

  1. Guest

    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?
     
    , Aug 2, 2007
    #1
    1. Advertising

  2. Guest

    On 2 Aug, 10:11, wrote:
    > 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
     
    , Aug 2, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    4
    Views:
    747
    clintonG
    Dec 24, 2004
  2. =?Utf-8?B?YW5kcmV3MDA3?=

    question row filter (more of sql query question)

    =?Utf-8?B?YW5kcmV3MDA3?=, Oct 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    962
    Scott Allen
    Oct 6, 2005
  3. Replies:
    0
    Views:
    1,060
  4. zax75
    Replies:
    1
    Views:
    1,123
  5. richard
    Replies:
    12
    Views:
    772
    dorayme
    Mar 9, 2010
Loading...

Share This Page