tubeshowcase●1,059,439 videosβ™‘ My collection 0
← Learn to Code

Learn to Code21:08

Subgrid & Container Queries change how we can create layouts

Kevin Powell β†—

From the creator

https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=containersubgrid πŸ‘ˆ Looking to get better at CSS? I’ve got a range of courses, including several free ones! Container queries and subgrid are now both supported in all evergreen browsers, which is super exciting, and as a bonus, they can work really well together! In this video, I explore a classic subgrid example, and then step things up with the use of container queries, using that to add a subgrid to featured element across a few break points, and also looking at how container queries can break subgrid if we try to use them both on the same element. πŸ”— Links βœ… The code from this video: https://codepen.io/kevinpowell/pen/RwvWoLg??editors=1100 βœ… More videos on Subgrid: https://www.youtube.com/playlist?list=PL4-IK0AVhVjM4Kjqw_zN-Y3neCFXWPDJ2 βœ… Adam Argyle’s article on Subgrid: https://web.dev/articles/css-subgrid (I thought Adam wrote this, but I don’t see an author anymore so 🀷) βœ… More on grid auto-fit: https://youtu.be/z2kuC7w9emE ⌚ Timestamps 00:00 - Introduction 00:48 - What we’re starting with 01:45 - Setting up the main grid 03:00 - Setting the stage for using subgrid 05:20 - Adding in subgrid for rows 08:06 - Using a container query to change the style of a featured card 12:55 - Adding subgrid columns to the featured card 16:50 - Container queries can break subgrid #css #cssgrid #layout -- Come hang out with other dev's in my Discord Community πŸ’¬ https://discord.gg/nTYCvrK Keep up

Published 2023-10-26 Β· Watch on YouTube β†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code