Reputation: 443
Wondering if this is possible: I have a container div, that has opacity set, and inside that div are two(or more) absolute positioned divs. It should make the whole thing transparent,as it does in all browser except IE8 (IE7 even works!)
Thanks,
Andy
Upvotes: 2
Views: 324
Reputation: 1
You could add the following line to the CSS declarations of the inner divs:
filter:inherit;
This should do the job (it worked for me).
Source:
http://www.jacklmoore.com/notes/ie-opacity-inheritance/
Upvotes: 0
Reputation: 102783
Almost there. Just update this one line in the CSS:
#opacity, #opacity div {
The issue is that when you write #opacity, it targets that element, but not its child elements. Writing it like above corrects that.
Upvotes: 1