From the course: CSS: Advanced Layouts with Grid
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
The challenge - CSS Tutorial
From the course: CSS: Advanced Layouts with Grid
The challenge
- [Instructor] The most obvious use-case for CSS Grid is in creating multi column layouts. In this chapter, I'll show you how to make a conventional three column layout, how to make an unconventional version of that layout, how to center these layouts on the center of the screen, and also how to do some magic with CSS Grid, breaking content out of a sub element to display on the grid itself. And we'll make all of these layouts using the exact same HTML document. We'll start with the conventional three column layout. Here, all we have to do is create a grid with three columns. Then we place the grid items on the grid, either automatically or using grid line references. Got it? Okay, let's get this working in real life.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
The challenge43s
-
Overview of the starting point2m 8s
-
(Locked)
Check for grid support1m 15s
-
(Locked)
Create the main grid3m 19s
-
(Locked)
Position items on the grid2m 16s
-
(Locked)
Add a third column for wider viewports5m 59s
-
(Locked)
Breaking the grid3m 55s
-
(Locked)
Justify the grid inside the grid container2m 30s
-
(Locked)
Use white space to perform magic6m 56s
-
(Locked)
-
-
-
-
-