Answers for "how to set an image to take the full height of its container using css grid"

CSS
3

fit image in grid css

.photo > img {
  object-fit: cover;
  width: 100%;
  max-height: 100%;
}
Posted by: Guest on April-12-2021
0

fit image in grid css

.photo > img {
  object-fit: cover;
  width: 100%;
}
Posted by: Guest on April-12-2021

Code answers related to "how to set an image to take the full height of its container using css grid"

Browse Popular Code Answers by Language