CSS Grid Basics: Coding lesson for kids

In “CSS Grid Basics”, children learn about display: grid; grid-template-columns: 1fr 1fr 1fr; and display: flex;.

display: grid; grid-template-columns: 1fr 1fr 1fr;: Turns the container into a GRID with 3 equal-width columns.

display: flex;: Flex is best for ONE row or column. Grid is best for a full 2D layout — rows AND columns together.

This lesson is part of HTML/CSS in Coding at Pearls Valley Academy — Build and style your first web page.

Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.