Creating a robust grid system using subgrid

Share this & earn $10
Kevin Powell
Published at : 23 Oct 2021
18939 views
936
9

Subgrid is so powerful, and to continue raising awareness of how great it is, here is yet another video exploring it, this time building out a robust grid system!



🔗 Links
⚠ The start and end code will only work in Firefox (at the time of publishing this)

✅ Starting code: https://codepen.io/kevinpowell/pen/MWoZKvM
✅ Finished code: https://codepen.io/kevinpowell/pen/eYRaXpm

✅ Introduction to subgrid: https://www.youtube.com/watch?v=tX06aPu1aIg&list=PL4-IK0AVhVjM4Kjqw_zN-Y3neCFXWPDJ2

✅ Introduction to grid: https://www.youtube.com/watch?v=plRcoRqLriw&list=PL4-IK0AVhVjM41-Ezm5tmESVchNEi7aZU

✅ Custom properties: https://www.youtube.com/watch?v=PHO6TBq_auI&list=PL4-IK0AVhVjOT2KBB5TSbD77OmfHvtqUi



⌚ Timestamps

00:00 - Introduction
01:38 - Setting up the master grid
03:10 - Placing the children on the grid
04:19 - Creating the subgrids
05:02 - Fixing the subgrid layouts
06:57 - Creating a more robust master grid
09:30 - Improving the master grid with custom properties
11:06 - Getting things on our grid at larger screen sizes
19:48 - Custom sections with custom properties
24:14 - Breaking out of the "container"
28:44 - The hero area





#css







Come hang out with other dev’s in my Discord Community

💬 https://discord.gg/nTYCvrK



Keep up to date with everything I’m up to

https://www.kevinpowell.co/newsletter



Come hang out with me live every Monday on Twitch!

📺 https://www.twitch.tv/kevinpowellcss







Help support my channel

👨‍🎓 Get a course: https://www.kevinpowell.co/courses

👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome

💖 Support me on Patreon: https://www.patreon.com/kevinpowell







My editor: VS Code - https://code.visualstudio.com/







I’m on some other places on the internet too!



If you’d like a behind the scenes and previews of what’s coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.



Twitter: https://twitter.com/KevinJPowell

Codepen: https://codepen.io/kevinpowell/

Github: https://github.com/kevin-powell







And whatever you do, don’t forget to keep on making your corner of the internet just a little bit more awesome!

Kevin Powellcssfront-end

Royal & the Serpent - Overwhelmed (Official Music Video)

Royal & the Serpent - Overwhelmed (Official Music Video)

27 CAMPING HACKS THAT YOU DEFINITELY NEED TO KEEP FOR THE FUTURE

27 CAMPING HACKS THAT YOU DEFINITELY NEED TO KEEP FOR THE FUTURE

Why Do I Try To Have Faith In People? Married At First Sight Body Language Analysis

Why Do I Try To Have Faith In People? Married At First Sight Body Language Analysis

Use of AM, IS, ARE with Pronouns | English Grammar | Roving Genius

Use of AM, IS, ARE with Pronouns | English Grammar | Roving Genius

Earn $8 in 30 Seconds For FREE (Make Money Online)

Earn $8 in 30 Seconds For FREE (Make Money Online)

UNUSUAL MEMES COMPILATION V155

UNUSUAL MEMES COMPILATION V155

Back in Time for Dinner - 1950s

Back in Time for Dinner - 1950s

Security - Trailer (Official) | Netflix

Security - Trailer (Official) | Netflix

Software will bring them to their knees, while Tesla accelerates

Software will bring them to their knees, while Tesla accelerates

Contact - The Universe Is A Pretty Big Place

Contact - The Universe Is A Pretty Big Place

Γαλακτομπούρεκο παραδοσιακό, γιορτινό από τον παππού Τάσο

Γαλακτομπούρεκο παραδοσιακό, γιορτινό από τον παππού Τάσο

Mermaid. Undersea ASMR

Mermaid. Undersea ASMR

Gaab - Preservê - LETRA - (Lyric)

Gaab - Preservê - LETRA - (Lyric)

Park Jung Min ft Jisun - If You Cannot

Park Jung Min ft Jisun - If You Cannot

How to Write a GOOD Discussion Board Post

How to Write a GOOD Discussion Board Post

In the direction of deer

In the direction of deer

CARL SAGAN - A Way of Thinking

CARL SAGAN - A Way of Thinking

Red Hot Chili Peppers - Can't Stop [Official Music Video]

Red Hot Chili Peppers - Can't Stop [Official Music Video]

The Most Efficient Way to Destroy the Universe – False Vacuum

The Most Efficient Way to Destroy the Universe – False Vacuum

What is Authorized Push Payment APP fraud

What is Authorized Push Payment APP fraud

Why Republic Day is Celebrated | republic day video

Why Republic Day is Celebrated | republic day video

Matthew West - Hello, My Name Is (Lyrics)

Matthew West - Hello, My Name Is (Lyrics)

I Found A SECRET ROOM in Tower of MADNESS

I Found A SECRET ROOM in Tower of MADNESS

Elyoya 5head POV being aware of enemy TPs

Elyoya 5head POV being aware of enemy TPs

Sujeto: Mi Top 3 Juegos Favoritos

Sujeto: Mi Top 3 Juegos Favoritos

See Why our Bathtubs are the #1 Selling Walk In Tubs in North America

See Why our Bathtubs are the #1 Selling Walk In Tubs in North America

Minato Kunai Modeling Tutorial #Kai_Free_Models ✔

Minato Kunai Modeling Tutorial #Kai_Free_Models ✔

Look Listen & Take Heed Women Keep Your Virtue

Look Listen & Take Heed Women Keep Your Virtue

MNEK - Colour (Official Video) ft. Hailee Steinfeld

MNEK - Colour (Official Video) ft. Hailee Steinfeld

Celani - Over & Past ft. Maria

Celani - Over & Past ft. Maria

Stepping into the light - Kaylee Bryant (Audio + Lyrics) | Legacies (1x11)

Stepping into the light - Kaylee Bryant (Audio + Lyrics) | Legacies (1x11)

Rougned Odor punches José Bautista in the face, a breakdown

Rougned Odor punches José Bautista in the face, a breakdown

Roger maris 61* 2001

Roger maris 61* 2001

Danity Kane - Damaged (Official Music Video)

Danity Kane - Damaged (Official Music Video)

how you can purchase products online  from shop.metlifeint.com

how you can purchase products online from shop.metlifeint.com

Octane and Blender 2.9 perfect shadows.

Octane and Blender 2.9 perfect shadows.

James Ingram - There's no easy way Lyrics

James Ingram - There's no easy way Lyrics

130th Session of the Committee of Ministers of CoE - CM Miltiadis Varvitsiotis Speech

130th Session of the Committee of Ministers of CoE - CM Miltiadis Varvitsiotis Speech

BOTTLE FLIP ON HEAD CHALLENGE! (Q&A w/ Robust)

BOTTLE FLIP ON HEAD CHALLENGE! (Q&A w/ Robust)

BAD BUNNY - 120 | EL ÚLTIMO TOUR DEL MUNDO [Visualizer]

BAD BUNNY - 120 | EL ÚLTIMO TOUR DEL MUNDO [Visualizer]

The Big Apple (Colborne, Ontario)

The Big Apple (Colborne, Ontario)

Phrasal Verb Daily 65: "GO ALONG WITH"

Phrasal Verb Daily 65: "GO ALONG WITH"

Raheem DeVaughn - Customer

Raheem DeVaughn - Customer

No Angels - Reason (Official Video)

No Angels - Reason (Official Video)

Opposite Vehicles 2 - Railway Vehicles, Street Vehicles, Aircraft - The Kids' Picture Show

Opposite Vehicles 2 - Railway Vehicles, Street Vehicles, Aircraft - The Kids' Picture Show

Open Heart Surgery | Inside the OR

Open Heart Surgery | Inside the OR

Ciggy Blacc - Dishonest (Official Video)

Ciggy Blacc - Dishonest (Official Video)

English Vocabulary - Assure, Ensure, Insure

English Vocabulary - Assure, Ensure, Insure

London Grammar - Strong [Official Video]

London Grammar - Strong [Official Video]