2
Hello;
I am having a project of the Coach, and in it has a list of games, I want to make that when you pass the mouse over the image increase, with that 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 gets bigger, the rest of the other images break, and they’re all crooked. What can I do to fix this?