im trying to make 3 seperate overlapping divs with a filter bg
the first div is to be a containing div opacity 30
the second div w/in the first div bg opacity 30
then overlapping the second div with 100 percent visible content
b and c need to be the same size
im trying to make it so u can still see the body background
i tried using the z-index with no luck
With divs inside other divs that have opacity less than 100% the child will inherit the parent opacity. In your example you didn’t give your divs any width or height, so you couldn’t see the result. Here is an example where the divs are independent of each other, so the opacity can be set as required. You will need to adjust the positioning to achieve your other objectives.
[HIGHLIGHT=“”]
<!doctype HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
If you want non transparent elements on top of transparent ones then its quite awkward to do (without using css3 rgba) because as mentioned above any elements inside a div that has opacity applied will be affected by that opacity and it cannot be reversed.