So, I'm trying to create a lightbox, for example, to feel. I created a #blackoutdiv and div #enlargedBOX.
#blackoutdiv has 90% transparency because I want the background website to show just a little bit, however I DO NOT want my #enlargedBOXdiv to use the same opacity. It seems to #blackoutmake its opacity to anything within itself. How can i stop this?
<div id="blackout">
<div id="enlargedBOX">
<img src="" width="500" height="500" border="0" />
</div>
</div>
Here jsFiddle
You will see that the red background is displayed on a white #enlargedBOXdiv.
source
share