I have craeted a greyed out layer that sites above the website when called, and inside that I have another div, and its this div that is confusing me.
I am using z-index to try and get the inner div to not adopt the alpha transpareny of its parent div, and its just not working.
Here is the css:
Here is the html:
Its working fine and appearing when i want it too, but the warning div adopts the transparency of cover and the effect isnt right, as i wont warning to be a solid colour.
Opacity is automatically transferred to children. There is no way around that using pure CSS. You must use the techniques listed in this quiz, which interestingly enough, we had. It's basically just modifying HTML mostly, and then matching up some CSS to make it fit. You'll see.