u/Username482649in r/Frontend • Recommends
On “Just bombed an tech interview...”
1D/2D isn't realy great way to look at it:
link to this video
The best way is who should be in control. Parent or children.
Grid is parent, Flex is children.
1M subscribers • 13 videos on Hallway
Intermediate. Assumes working knowledge.
66K views2 years ago3 recommendations
Kevin Powell argues against the rigid rule of using Flexbox for 1D and Grid for 2D, explaining how to choose based on control.
Flexbox is great at some 2D layouts, and Grid can be a better choice for 1D layouts as well, so let's stop that being how we decide which one we're going to use, because often it leads us down the wrong path. 🔗 Links ✅ Code from first example: codepen.io/kevinpowell/pen/abgomQP ✅ Code from second example: codepen.io/kevinpowell/pen/XWQGmQE ✅ Diving into how flexbox works: youtu.be/9e-lWQdO-DA ✅ Easy way to get started with Grid: youtu.be/8QSqwbSztnA ⌚ Timestamps - Introduction - Why Grid might be better for 1D some layouts - Why Flexbox might be better for some 2D layouts - Grid gives you more control on sizing, flexbox is better for letting the children have control #css -- Come hang out with other dev's in my Discord Community 💬 discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 twitch.tv/kevinpowellcss --- Help support my channel 👨🎓 Get a course: kevinpowell.co/courses 👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: patreon.com/kevinpowell --- My editor: VS Code - 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: twitter.com/KevinJPowell Codepen: codepen.io/kevinpowell/ Github: 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!What people say. Recommended for clarifying the mental model of when to use Flexbox versus CSS Grid based on layout control.
u/Username482649in r/Frontend • Recommends
On “Just bombed an tech interview...”
u/MrPrimalNumberin r/Frontend • Recommends
On “Just bombed an tech interview...”
u/ieeahin r/Frontend • Recommends
On “Flexbox v Grid cagematch. Go!”