0
Following people, I have a class and another class underneath it... but the bottom class needs to be invisible until the user hovers the mouse in the top class, so I put opacity in it:0 , and I tried to put a Hover in the top class so when the user passed the mouse in it the bottom class would be with opacity:1, but it’s not working, is it possible to do this or am I doing wrong? here are the classes, I am using the background only for browser testing.
.foto-funcionario{
background: blue;
height: 400px;
}
.contato-funcionario{
height: 75px;
background: green;
opacity: 0;
}
.foto-funcionario:hover .contato-funcionario{
opacity: 1;
}