css fit image to grid item code example
Example 1: fit image in grid css
.photo > img {
object-fit: cover;
width: 100%;
max-height: 100%;
}
Example 2: fit image in grid css
.photo > img {
object-fit: cover;
width: 100%;
}
.photo > img {
object-fit: cover;
width: 100%;
max-height: 100%;
}
.photo > img {
object-fit: cover;
width: 100%;
}