
Hey everyone! Welcome to Practical CSS Grid! Now, you’re here, so you’ve obviously heard that CSS Grid is “the new hotness.” I’m here to tell you, though, it is the biggest dynamic shift in web design since the invention of CSS itself. It changes everything from the way we build sites to the way we design sites.
In this course, I’ll walk you through some basic terminology for grid, and then we’ll dive right in to practical examples with design patterns you’re used to, remixed in new and interesting ways!
Before we get started, let me tell you a little bit about myself. My name is Bryan Robinson and I’ve been a professional designer and developer for well over a decade now. I’ve worked in house on large projects and on small to medium websites for agencies. Now, I focus on teaching modern development practices to designers and developers via my company Code Contemporary.
I started researching Grid about 5 months before it was fully implemented, after watching multiple videos from Jen Simmons — a personal hero of mine. She was talking about the future of web design and I was intrigued. I even converted my blog over to CSS Grid behind feature queries before Grid was in any browser.
This course is really the culmination of a now years-long infatuation with this amazing CSS Feature. I’m really excited to share practical examples of how to get Grid up and running. Thanks for joining the course, and let’s get going!
In this lecture, I do a short dive into the abstract terms you may need to know when talking about CSS Grid.
A quick tour of the various files for following along with the exercises. Download them here.
In this lesson, we'll cover creating a very simple grid using the following properties and values:
display: grid
grid-template-columns
grid-gap
the fr unit
In this lesson we'll take what we learned from Exercise 1 and make our grid responsive with NO break points. Concepts we'll use:
repeat()
minmax()
box-alignment
One of the big benefits of CSS Grid is how easy it is to introduce asymmetry to design. In this lesson, we'll do an article grid, but make it interesting with different sized items. Concepts discussed:
grid-auto-flow
grid-column/grid-row
CSS span keyword
box-alignment
Grid makes adjusting layout easy. Using the same grid template declarations, we'll explore how we can place items on the grid to art direct banners. Concepts used:
grid-template-rows
Explicit placement with grid-row and grid-column
In this lesson, we'll discuss how to make large layout changes between various break points with very little code. Concepts we'll use:
Named Grid Lines
grid-template-areas
Mobile-first development
In this lesson, we'll take a look at how Grid can create interesting banner areas by utilizing an asymmetric grid to showcase 4 promotional spaces at a time.
We'll review the following properties:
grid-template-areas
minmax()
repeat()
In this exercise, we'll create a basic article design. Inside this article, we'll create a breakout template for a gallery space. This area will be 100% of the browser width while the column of content remains at a readable length.
Explore "Variable Squishiness"
minmax()
Grids within Grids
You've heard about CSS Grid layout. You know it's the new hotness in the web design world, but you haven't started using it yet. Many tutorials out there focus on the new properties themselves and don't give practical examples. Let me walk you through all its features in a simple, practical approach. By the end of this course, you'll understand Grid and have practical examples to put into production right away!