I have created a div which has an image on it :
.middleBlockDiv{
content:url("./images/blockhead.png");
display: inline-block;
background-color: rgba(70,130,180,1);
float: left;
z-index:2;
opacity: 0.8;
border: 4px solid white;
border-radius: 30px 15px;
clear:both;
}
and I have a child div :
.coinDiv{
display: inline-block;
background-color: gold;
float: left;
z-index:2;
border: 4px solid white;
border-radius: 50px;
clear:both;
}
If i dont put an image into the parent div so the css of the parent div is like so :
.middleBlockDiv{
display: inline-block;
background-color: rgba(70,130,180,1);
float: left;
z-index:2;
opacity: 0.8;
border: 4px solid white;
border-radius: 30px 15px;
clear:both;
}
The child div gets shown, however, if i keep the image in, the child div doesn't get shown. It's in the DOM but not shown onscreen.
I think it may be because of inheritance, as the child div may be inheriting the image.
How do I stop the child div inheriting the image from the parent ?
FIDDLE: http://jsfiddle.net/8xyk2ucb/