Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

CSS - 4 columns grid properties

0 votes
added Jul 23 in CSS by lcjr Second Warrant Officer (6,120 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;


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.