How to use grid to fit an imgae inside a div 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%;
}