79225848

Date: 2024-11-26 08:23:16
Score: 1.5
Natty:
Report link

check grid-auto-flow https://www.w3schools.com/cssref/playdemo.php?filename=playcss_grid-auto-flow

.grid-container {
  display: grid;
  grid-auto-flow: column; /* Items flow down the first column, then the next */
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr)); /* Adjusts rows dynamically */
  grid-template-columns: repeat(2, 1fr); /* Defines 2 equal columns */
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Janindu Pathirana