I'm trying to enhance the setup of my page with three images in columns by adding an extra overlay on top of the main image but beneath the hover effects. However, I seem to be encountering some difficulties while working on it.
Take a look at my code snippet below:
fiddle: http://jsfiddle.net/r4mp0v4v/
.wrapper img{
float:left;
width:100%;
}
@media screen and (min-width: 700px) {
.wrapper img{
width:33%;
height:100%;
}
}
body {
display: block;
margin: 0px;
}
img:hover{
opacity: 1;
}
img {
opacity: 0.5;
background: #000;
}
overlay_image{
position: absolute;
top: 60px;
left: 80px;
}
<div class="wrapper">
<a href="Northside.html">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6d/Good_Food_Display_-_NCI_Visuals_Online.jpg" alt="">
<img src="http://creativitywindow.com/wp-content/uploads/2013/02/PNG-Portable-Network-Graphics.png" class="overlay_image">
</a>
</div>
<div class="wrapper">
<a href="Catering.html">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/64/Foods_(cropped).jpg" alt="">
</a>
</div>
<div class="wrapper">
<a href="test/index.html">
<img src="http://www.healthsguardian.com/wp-content/uploads/2015/05/Improper-time-to-have-some-foods.jpg" alt="">
</a>
</div>