CSS - 4 columns grid properties

0 votes
82 views
added Jul 23, 2021 in CSS by lcjr First Warrant Officer (9,190 points)
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 10px;
  background-color: red;
  padding: 10px;
}

.grid-container > div {
  background-color: blue;
  text-align: center;
  padding: 20px;
  font-size: 15px;
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...