I do not know if I understood correctly what you wanted, but as you put the CSS tag, I'll give you a solution with nth-child(n)
( n ) is the order number in that div
appears, as you have two div
I used 1 and 2 in the example) you can make a separate style for each div
with class lis-fil
The two Form
starts hidden with display:none
, but when you hover over the div
the Form appears.
Note that in classes div.lis-fil form
and div.lis-fil:hover form
I do the styles that are common to all div.lis-fil
. Then using div.lis-fil:nth-child(1):hover form
I put the particular style of each div
, in case I only change the text color for each div in this example.
div.lis-fil form{
display: none;
}
div.lis-fil:hover form{
font-size: 1.5rem;
font-family: sans-serif;
font-weight: bold;
display: block;
}
div.lis-fil:nth-child(1):hover form{
color:red;
}
div.lis-fil:nth-child(2):hover form{
color:blue;
}
<div class="lis-fil">
<a href="jumanji-bem-vindo-a-selva.php"><img src="http://placecage.com/50/50"class="fil-lis"></a>
<form action="">form1 lis-fil </form>
</div>
<div class="lis-fil">
<a href="no-olho-do-furacao.php"><img src="http://placecage.com/51/50"class="fil-lis"></a>
<form action="">form2 lis-fil </form>
</div>
<div class="lis-fil">
<a href="no-olho-do-furacao.php"><img src="http://placecage.com/52/50"class="fil-lis"></a>
<form action="">form3 sem classe nth-child(n) </form>
</div>