Hello;
I'm having a Technician project, and it has a list of games in it, I want to make it when I hover over the image, so I have the following:
foreach ($lista as $jogo){
echo ('
<div class="quad-Jogo box">
<img onmouseover="Aumenta(this)" onmouseout="Normaliza(this)" src="img/'.$jogo['imagem'].'" class="img-fluid" alt="...">
<a href="detalharesenha.php?cod='.$jogo['cod'].'">Veja mais</a>
</div>
');
}
echo ('
<script type="text/javascript">
function Aumenta(img){
img.style.width = "110%";
}
function Normaliza(img){
img.style.width = "100%";
}
</script>
');
But when the image increases, the rest of the other images break, and they are all crooked. What can I do to fix this?