I currently have an image gallery set up with the following structure :
<div class="gallery">
<div class="message">
Welcome to the gallery
</div>
<img src="http://placehold.it/300x300" />
</div>
Here is the accompanying CSS :
.message {
position:absolute;
left:10px;
top:20px;
height:30px;
width:140px;
background:#333;
}
.gallery img {
opacity:.85;
}
However, the issue I'm facing is that the message
div also becomes transparent. How can I prevent this and what is causing this transparency?