mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-05-14 14:52:04 +00:00
Fix altezza immagini non costante in homepage
This commit is contained in:
@@ -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" */
|
||||
}
|
||||
Reference in New Issue
Block a user