I asked people to make this simple layout and was surprised by the results
Channel: Kevin Powell
Date: 2023-10-19

Join my Discord community: https://kevinpowell.co/discord

I asked my Discord community to create a layout based on a .jpg, and had almost 100 submissions where people used flexbox, grid, and even tables to create the layout, so I thought it'd be a fun learning opportunity to take a look at the different approaches, looking at all their strengths and weaknesses, and seeing if we can't find a "best" approach.

🔗 Links 
✅ My Discord Community: https://kevinpowell.co/discord
✅ The spreadsheet of results (Thanks z-!) - https://docs.google.com/spreadsheets/d/16caq7cyNAwmDZ2haNMNp2zK45V8hiCMkdqWPEdUt4CU/edit?usp=sharing
✅ z-'s Codepen (full of *amazing* stuff): https://codepen.io/z-
✅ Follow z- on Twitter: https://twitter.com/zed_dash

⌚ Timestamps
00:00 - Introduction
01:30 - Flex or grid for the main layout
02:20 - Flex or grid for the layout of the cards
03:56 - Using flex on top and a margin-left on the bottom
05:38 - Using flex to make two columns inside the card
06:25 - Comparing the two flex solutions
10:40 - A grid solution
13:00 - Grid vs. Flexbox discussion
13:36 - Subgrid solution
15:08 - More challenges coming

#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!