Grid Template
Define the structure of your grid with template properties.
grid-template-columns
Define column tracks:
Loading CSS Playground...
grid-template-rows
Define row tracks:
Loading CSS Playground...
The repeat() Function
Create repeating patterns:
Loading CSS Playground...
Mixed Units
Combine different units:
Loading CSS Playground...
minmax() Function
Set minimum and maximum sizes:
Loading CSS Playground...
auto-fit and auto-fill
Create responsive grids:
Loading CSS Playground...
Interactive Playground
Loading Grid Playground...
Practical: Dashboard Layout
Loading CSS Playground...
Exercise: Create a 4-Column Grid
Use repeat() to create 4 equal columns:
Loading CSS Exercise...
Up next · Lesson 22 of 27
Grid Gap and Alignment
2 min read
21 of 27 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

