Flexbox is more complicated than you thought
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!
🎓 - I have a 4+ hour course that focuses only on understanding and using Flexbox: https://flexboxsimplified.com
🔗 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 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!
Видео Flexbox is more complicated than you thought канала Kevin Powell
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!
🎓 - I have a 4+ hour course that focuses only on understanding and using Flexbox: https://flexboxsimplified.com
🔗 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 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!
Видео Flexbox is more complicated than you thought канала Kevin Powell
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Responsive design made easyDo you understand how Flexbox does what it does?Give your site a fantastic color scheme fastI've been challenged to a CSS Battle rematch | Can I beat him again???The Insane Biology of: The DragonflyAre you using the right CSS units?You can do that with margins?Floats, Flexbox, Grid? The progression of CSS layoutsBefore and After pseudo elements explained - part one: how they work5 CSS mistakes that I see way too oftenStop using Chrome if you're writing CSSImprove your CSS by organizing your propertiesFlexbox vs. CSS Grid: Which Should You Use and When?From idea to layout: How I approach designing a site3D CSS - lighting, animations, and more!Dealing with Cross Browser CompatibilityFlexbox design patterns you can use in your projectsCSS em and rem explained #CSS #responsiveCSS Positioning: Position absolute and relative explainedCan I clone this weird border design?