diff --git a/index.php b/index.php index bf77aa9..dee1982 100644 --- a/index.php +++ b/index.php @@ -37,7 +37,7 @@ if ($result === false) {
€
diff --git a/style.css b/style.css index d51710d..575e933 100644 --- a/style.css +++ b/style.css @@ -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" */ } \ No newline at end of file