Answers for "grid repeat fit content"

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

grid repeat css

#container {
  display: grid;
  grid-template-columns: repeat(2,1fr) 100px;
  grid-gap: 5px;
  box-sizing: border-box;
  height: 200px;
  width: 100%;
  background-color: #8cffa0;
  padding: 10px;
}

#container > div {
  background-color: #8ca0ff;
  padding: 5px;
}
Posted by: Guest on November-23-2021

Browse Popular Code Answers by Language