Web_Designer
Web_Designer

Reputation: 74610

opacity of overlapping partially transparent elements

if you have one <div> element with an opacity of .5 and another <div> element overlaying the first with an equal opacity then what is the opacity of the two put together?
It's not,

nor is it,

How do I calculate such a problem?

Upvotes: 2

Views: 411

Answers (1)

Brent Friar
Brent Friar

Reputation: 10609

I believe the formula you are looking for would be 1-(x × y)

Upvotes: 4

Related Questions