Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

CSS Grid Intro and Basic Layout Tutorial for Beginners

Dave Gray via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn the fundamentals of CSS Grid in this beginner-friendly tutorial. Explore essential grid properties and create a basic layout using CSS Grid. Start with the quickest way to apply a grid, then dive into grid-template-columns, grid-auto-rows, and gap properties. Master grid positioning with grid-column and grid-row, and use dev tools to visualize your grid. Discover how to create complex layouts using grid-template-areas and experiment with various layout properties. Conclude by practicing your new skills with the interactive CSS Grid Garden game.

Syllabus

Intro
Welcome
Setup & Starter Code Review
Quickest way to apply a grid
grid-template-columns
grid-auto-rows
grid-template-rows, grid-auto-columns
row-gap, column-gap, gap
grid-column-start & end, grid-row-start & end
Viewing your grid in dev tools
grid-column, grid-row shorthand
align-content, justify-content, place-content
Adding HTML for grid-template-areas
grid-template-areas, grid-area
Experimenting with layout properties
CSS Grid Garden

Taught by

Dave Gray

Reviews

Start your review of CSS Grid Intro and Basic Layout Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.