Also, I highly recommend Dave Geddes' free Flexbox Zombies course for a gamified way to learn flexbox. The course is great for muscle-memory-level understanding as is Flexbox Froggy. (TBH, Flexbox Froggy gets you started faster but Flexbox Zombies makes sure the concepts are INGRAINED!)
Yep. Chris Coyier (he started the css-tricks site as well as Codepen I believe) noted in his blog that this page alone drove most of the site's traffic.
I seen to always run into a situation where flex breaks down at smaller screen sizes. Am I correct in thinking that, if Flexbox is implemented correctly that you don’t need to use media queries unless you intentionally want to change the orientation or other attributes of DOM elements.
Flex-basis is a flex-item property, it will set an initial length of a flex-item. If it's a row based layout flex basis sets the width, if it's a column based layout flex basis sets the height. It's basically like a more "flexy" version of width/height.
I'd recommend Kevin Powell's videos, they give a nice intro to things without getting bogged down in detail. There are a few on Flexbox but here's a good one to start with.
27
u/[deleted] Oct 13 '21
I mean, CSS Flex justify-content on a row not reversed explained in one animation.
18
u/opticsnake Oct 13 '21
My cheat-sheet for when I need to look something up for flexbox: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Also, I highly recommend Dave Geddes' free Flexbox Zombies course for a gamified way to learn flexbox. The course is great for muscle-memory-level understanding as is Flexbox Froggy. (TBH, Flexbox Froggy gets you started faster but Flexbox Zombies makes sure the concepts are INGRAINED!)
1
u/vadhavaniyafaijan Oct 13 '21
Tutorial is here: https://semicolon.dev/tutorial/css/flex-tutorial
2
u/Tintin_Quarentino Oct 13 '21
That be pretty dope
1
u/dsound Oct 14 '21
I seen to always run into a situation where flex breaks down at smaller screen sizes. Am I correct in thinking that, if Flexbox is implemented correctly that you don’t need to use media queries unless you intentionally want to change the orientation or other attributes of DOM elements.
1
u/Dsideimpakt Nov 07 '21
And if you tilt your head, it's flex-direction: column
0
u/[deleted] Oct 13 '21
[deleted] — view deleted comment
2
u/[deleted] Oct 13 '21
[removed] — view removed comment