Fix altezza immagini non costante in homepage

This commit is contained in:
2026-04-01 12:27:52 +02:00
parent 99a5bd74b8
commit ec04543775
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -123,4 +123,20 @@ form button:hover {
margin-bottom: 0;
margin-right: 20px;
}
}
.img-square {
position: relative;
width: 100%;
padding-top: 100%; /* crea un quadrato perfetto */
overflow: hidden;
}
.img-square img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain; /* o "cover" */
}