how to make large image fit in grid column css 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%;
}