I am trying to make my site work on ie8, what i originally had was background-color:rgba(4, 4, 4, 0.8);
- this works as expected on other browsers, unfortunately ie8 does not work with this so i am using the css below instead. - does anyone know how to avoid the child element from inheriting the opacity from the parent?
many thanks in advance.
I made a fiddle but it seems to be crashing when i open it in ie8 http://jsfiddle.net/up3uusxf/2/
<div id="overlay-modal">
<div class="inner-modal">
<p>Content in here</p>
</div>
</div>
#overlay-modal
{
display:none;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background-color:black;
filter: alpha(opacity=80);
opacity: 0.8;
z-index:999;
}
.inner-modal
{
width: 400px;
/*height: 270px;*/
margin: 200px auto;
background-color: white;
}