Answers for "grid from a repeater"

CSS
9

css grid repeat

repeat(/*Number of repeats*/, /*Code to be repeated*/)

.gridContainer {
	grid-template-columns: repeat(4, 100px); /*Creates 4 columns, each 100px in width*/
	grid-template-rows: repeat(2, 250px); /*Creates 2 rows, each 250px in height*/
}
Posted by: Guest on April-02-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