Save this video free

Grid & Subgrid (10-7-2026) | CIS311

Kenan Casey · 42:14 · Watch on YouTube

Part of Kenan Casey: CIS 311. See all 11 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Kenan Casey builds a responsive grocery product grid with CSS Grid techniques that reduce reliance on viewport breakpoints: `repeat()` with `auto-fill` and `minmax()`, full-width placement, and `subgrid` for aligning card content. He also demonstrates design tokens and LCH colors, container queries for component-level adaptation, and accessibility features including reduced-motion preferences and screen-reader handling.

Key takeaways

Chapters

0:00 Grocery Page Structure and the Outer Grid
5:05 Responsive Product Columns with `auto-fill` and `minmax()`
11:00 Shared CSS Tokens and LCH Color Definitions
16:36 Preventing Overflow with a Flexible Minimum Track Size
19:48 Making the Promotional Banner Span Every Auto-Filled Column
21:25 Aligning Product Card Rows with CSS `subgrid`
28:40 Using Container Queries for Card-Level Adaptation
35:10 Supporting Reduced Motion and Accessible Product Filtering

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So you you guys I invite you to clone this repo. We're going to look at some new tips and tricks and coolness associated with CSS grid. Specifically looking at how we can make a really nice product grid that looks like this that is beautifully responsive but doesn't require a ton of work on our part. So notice this. I've got this four column grid right now and it easily will change to a three column grid um while also changing to a two column grid at this break point. And then once we get small enough um our we actually change such that the uh the menu

0:51 up here goes horizontal and we stick with this two column all the way down. Um, okay. Question Ryan changing card. >> Mhm. Yeah, you could say that might we might need to tweak our break points there. >> Yeah, good call. Uh, okay. So, let's look at some tricks for how we're doing this. Um, so let's look at the grocery grid.html

1:41 just to make sure we understand our HTML. Okay, this whole thing is on is in a div called page. Okay, so page is containing everything. Sort of the the what we might call a wrapper or a container for the whole page. Page is a pretty good name in my opinion. The page itself has a header. It has this um the the filters for the different products. Sorry, I didn't I should have done this. So, when you come down here, you can see all items or just the produce and it just a little bit of JavaScript that's filtering them, but Pretty nice. Okay. So, we've got the form and then there's the main that's showing all the products and then there's a footer at the bottom.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Kenan Casey.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.