fit image inside grid 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%;
}