I have two divs positioned one on top of the other. In each div I have a photo. In the first appears the face of an unfocused person and above (in the other div) a png file where it looks like a text that says TOP SECRET. My idea is that when making a hover the TOP SECRET image disappears and the image of the face is focused.
HTML
<div id="div2">
<img src="mySelf.png" id="mySelf">
</div>
<div id="div2y5">
<img src="topSecret.png" id="topSecret">
</div>
CSS
#mySelf{
width: 200px;
height:: 200px;
margin: 0 auto;
padding-top: 50px;
filter: blur(5px);
}
#mySelf:hover{
margin: 0 auto;
padding-top: 50px;
filter: none;
}
#topSecret{
padding-top: 77px;
padding-left: 33px
}
#topSecret:hover{
padding-top: 77px;
padding-left: 33px;
visibility: hidden
}
#div2{
width: 200px;
}
#div2y5{
width: 200px;
}
#div2 img{
float: right;
position:absolute;
visibility:visible;
}
#div2y5 img{
float: right;
position:absolute;
visibility:visible;
}
I'm trying to make the hover over all the space occupied by the div container, both in div2 and in div2y5 since when doing it over images when being a png when I have the mouse over the text it has the effect but it does not apply to me the over in the image of the face underneath. He treats them independently so he wanted to do it in the div. And if you have the mouse on me apply the effect to both images
I attached the link of the two single images: link