Learn CSS Grid for free

This tutorial teaches you CSS Grid through 14 interactive screencasts. You'll learn all the key concepts while building three awesome layouts: a website, an image grid, and an article. Plus, you'll learn how to combine CSS Grid with Flexbox.

Course content

01Intro to the CSS Grid course
4:44
02Your first grid - CSS Grid tutorial
3:10
03OUT NOW: The React Bootcamp
3:03
04Fraction units and repeat - CSS Grid tutorial
3:38
05Positioning items - CSS Grid tutorial
6:36
06Template areas - CSS Grid tutorial
4:48

CSS Grid is a new superpower for web developers 🦸‍♂️

This new CSS module makes it easier than ever to create website layouts. It simplifies both your HTML and CSS, while simultaneously giving you more control over your layout. You can use it without any framework, as the CSS Grid module is native to the browser.

So if you want to stay up-to-date as a front end developer, you'll need to learn how to use CSS Grid! Luckily though, it's not hard. And this course teaches you all you need to know. For free, of course.

Course content

This course contains three sections. The first two will teach you the core concepts you need to know to get started. Together, we’ll build both a website layout and a super cool image grid.

In the bonus section, you’ll learn how to create article layouts with CSS Grid plus some more advanced concepts.

What you’ll learn

  • CSS Grid fundamentals
  • Your first grid
  • Responsive grids
  • How to create pages, image grids, and articles
  • How to quickly prototype websites
  • How to use Grid with Flexbox
  • Advanced concepts

You'll be proficient with the following parts of CSS Grid when you complete the course:

  • display: grid, grid-gap
  • grid-template, grid-template-colums, grid-template-rows
  • fr, repeat, minmax, auto-fit, auto-fill
  • grid-auto-rows
  • grid-colum, grid-row
  • grid-template-areas and grid-area
  • justify-items, align-items
  • justify-self, align-self

And remember, this isn't a regular video course, it's a Scrimba course! Which means you can interact with the code inside the tutorials whenever you want. This makes learning a lot more fun!

Feel free to reach out to the instructor Per Harald Borgen on Twitter if you have feedback or questions.

What you'll learn 👩‍🏫

CSS Grid fundamentals
Starting with grid
Responsive grids
Fraction units
Repeat
Positioning items
Template areas
Auto-fit
minmax
Implicit rows
Named lines
justify-items
align-items
auto-fit vs auto-fill
Create an article layout
An awesome image grid

Meet your teacher 👋

The course creator

Per Harald Borgen

Front-end developer and co-founder of Scrimba. Per loves helping other people learn new skills so that they can improve their lives. He makes his tutorials as simple as humanly possible, and focus on getting the students to the point where they can start building projects on their own.

Thank Per for the course

people love this course 😍

why you'll learn faster 🔥

secure your free spot

100,000 people can't be wrong

FAQ

Is CSS grid better than bootstrap?

Not only can you create layouts that previously wasn’t possible without introducing JavaScript, but your code will be easier to maintain and understand. Swapping out Bootstrap with CSS Grid will make your HTML cleaner. While this isn’t the most important benefit, it’s likely the first one you’ll notice.

Is CSS grid better than Flexbox?

Flexbox is made for one-dimensional layout and Grid is made for two-dimensional layouts. This means that if you’re laying out items in one direction (for example three buttons inside a header), then you should use Flexbox. It’ll give you more flexibility than CSS Grid. It’ll also be easier to maintain and require less code. However, if you’re going to create an entire layout in two dimensions — with both rows and columns — then you should use CSS Grid. Depending on your use-case, one might be more preferable than the other.