47:49Subgrid & Container Queries change how we can create layouts
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.





