0

Is there a CSS methodology that makes a particular color transparent? And if there is, will it work on images? For example, let's say I want to make all the white in a cell or a div transparent, as well as the white bits of an image contained in said div/cell?

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Troy III
0

Is there a CSS methodology that makes a particular color transparent? And if there is, will it work on images? For example, let's say I want to make all the white in a cell or a div transparent, as well as the white bits of an image contained in said div/cell?

There is a CSS3
A similar capability was proposed years from now. It still has a status of proposal at W3C since 2001 or 3, but it's being kept frozen.

Although, still not accepted and not defined completely, some browsers claiming to be W3C compliant have already implemented it, as they did with opacity property.

So in browsers "supporting" CSS3 you can make a color transparent using rgba(color,color,color, alpha)
example: [css selector] {color: rgba(255,0,0,0.5) will give you a red text with of 50% transparency on that element. Or if applied in the background you will have 50% transparent red.

But you can't make image color transparent with it.

The only browser that will give you means to achieve something like that right now is IE4++.

Using its chroma filter.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.