tubeshowcaseโ—1,069,535 videosโ™ก My collection 0
โ† Learn to Code

Learn to Code22:42

Flexbox is more complicated than you thought

Kevin Powell โ†—

From the creator

๐ŸŽ“ - I have a 4+ hour course that focuses only on understanding and using Flexbox: https://flexboxsimplified.com Article on CSS-Tricks: https://css-tricks.com/equal-columns-with-flexbox-its-more-complicated-than-you-might-think/ Flex is a little strange in how it works, and I only recently dove deep enough into it to really understand what was going on, so I figured I'd share my discoveries with you! ๐Ÿ”— Links โœ… https://codepen.io/kevinpowell/pen/0ebf3952425bd37cb884a1b17f61052a โœ… https://codepen.io/kevinpowell/pen/f838f43ddef1862472f88b75e3ccd013 โœ… https://codepen.io/kevinpowell/pen/a9968ef9abfea662b428caf37fa7bca9 โœ… https://codepen.io/kevinpowell/pen/OJpvpbv โœ… https://codepen.io/kevinpowell/pen/qBrorpq โŒš Timestamps 00:00 - Introduction 02:15 - How flexbox calculates the size of elements 06:10 - How flex-shrink calculates how much to shrink by 11:24 - How flex-grow calculates the size to grow by 12:00 - What flex: 1 actually does 13:09 - Why flex: 1 on all the flex items doesn't make even columns all the time 16:16 - Why flex-basis: 100% doesn't have the same result as flex: 1 17:23 - My new preferred solution 20:00 - A solution using flexbox 21:26 - Flexbox vs Grid #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

Published 2021-06-10 ยท Watch on YouTube โ†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code