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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.