From the course: CSS Essential Training
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Intro to CSS Grid - CSS Tutorial
From the course: CSS Essential Training
Intro to CSS Grid
- [Instructor] Before there was CSS Grid, grid-based layouts were a common part of web design. Grids are divided into evenly spaced columns with gutters to add consistent spacing between them. The grid then serves as a guide for laying out page components by arranging them within the columns. CSS Grid is a layout method that makes it possible to create grid-based designs that previously required hacks and other workarounds. Let's go over some grid terminology. Similar to the Flexbox layout, the grid container is the parent element. The direct child elements are the grid items. To begin using a grid layout, start by defining the grid container with the display property with either the grid or inline-grid value. Both will designate the child elements as grid items which will display in a single column. When using the value of grid, the width of the items by default will span the width of its container. When using the…
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
-
-
-
-
-
-
-
Intro to Grid and Flexbox59s
-
(Locked)
Intro to Flexbox2m 25s
-
(Locked)
Flexbox: Orientation and ordering3m 1s
-
(Locked)
Sizing with flex properties2m 29s
-
(Locked)
Flexbox exercise3m 51s
-
(Locked)
Project: Sticky footer with flexbox5m 39s
-
(Locked)
Aligning flex items3m 20s
-
(Locked)
Project: Aligning elements with Flexbox3m 41s
-
(Locked)
Intro to CSS Grid2m 23s
-
(Locked)
The explicit grid3m 59s
-
(Locked)
The implicit grid2m 58s
-
(Locked)
Adding gutters with the gap property1m 21s
-
(Locked)
Project: Adding columns with Grid8m 15s
-
-
-
-