Answers for "auto-fit grid property css"

CSS
2

grid css repeat auto-fit minmax

grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
Posted by: Guest on September-15-2020
3

fit image in grid css

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

Browse Popular Code Answers by Language