Topic: CSS Basics

CSS Grid – CSS


To enable CSS grid on a parent element, add the display property with a value of grid to it:

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.