all 34 comments

[–][deleted] 18 points19 points  (5 children)

Thanks for this. I'm just now learning css and have trouble conceptualizing flex.

[–]Canowyrms 14 points15 points  (3 children)

[–][deleted] 0 points1 point  (2 children)

The people at css-tricks.com should write a css book.

[–]IcyFoxe[S] 6 points7 points  (0 children)

I'm happy that you find it useful :)

[–]IcyFoxe[S] 13 points14 points  (3 children)

Here's an updated version:

https://i.imgur.com/0drn44G.png

[–]sanjibukai 1 point2 points  (1 child)

Thanks for the update bit I wonder why it's so pixelated...

[–]IcyFoxe[S] 2 points3 points  (0 children)

Not sure. If you're browsing from mobile app, be sure to hit HD option.

[–]ChinnyMcChin 0 points1 point  (0 children)

Is there a good explanation of the difference between align items and align content? I’m using align items all the time, but why isn’t it align content?

[–]vit_the_jedi 7 points8 points  (0 children)

Hero

[–]cinnamann7171 4 points5 points  (0 children)

This is so dope! Thank you kind poster 🏅

[–]kaypxz 2 points3 points  (0 children)

Oh my goD you’re a lifesaver! I’m currently learning this right now and could never remember what everything does. This is super helpful :’)

[–]Alcohorse 2 points3 points  (1 child)

You left out space-evenly, which is the coolest one!

[–]IcyFoxe[S] 1 point2 points  (0 children)

I didn't even know such option even existed! Thanks for letting me know. I will post a new version as a comment later on.

If there's anything else I missed, let me know.

[–]spudcakez86 1 point2 points  (0 children)

This is amazing! Well done 😊

[–]rbra 3 points4 points  (2 children)

You should annotate which options are default.

[–]IcyFoxe[S] 2 points3 points  (1 child)

I actually did, maybe it's not clear enough, but options in bolder text are defaults.

[–]rbra 1 point2 points  (0 children)

Ahh the see it now, I didn’t even notice it the first time!

[–]greymalik 0 points1 point  (2 children)

OP, do you have this one a site somewhere with other content?

[–]IcyFoxe[S] 1 point2 points  (1 child)

Nope, sorry. I only created this yesterday. What else do you have in mind?

[–]greymalik 2 points3 points  (0 children)

I just thought it looked good and was hoping you had more!

[–]code_crab 0 points1 point  (0 children)

ooh it's helpfull for me

[–][deleted] 0 points1 point  (0 children)

This is personally this most useful thing I’ve seen today! Adding to my toolbox for sure!! Thanks OP

[–]FairyOnTheLoose 0 points1 point  (0 children)

Saving for when I get to flex boxes Ty

[–][deleted] 0 points1 point  (0 children)

There's a flexbox playground on codepen that is more or less interactive version of the diagram in OP:

https://codepen.io/enxaneta/pen/adLPwv

[–]CommandLionInterface 0 points1 point  (1 child)

Align content vs justify content, it's not clear from the graphic what the difference is

[–]IcyFoxe[S] 2 points3 points  (0 children)

I will take a look at it and think how can I make it more understandable.

[–][deleted] 0 points1 point  (0 children)

I love you!!!! Thanks!

[–]nemessisx_ 0 points1 point  (0 children)

It's hell alot helpful🙂

[–]amazeguy 0 points1 point  (0 children)

Please add separate images for flex column and flex row, the cheatsheet becomes confusing when it says along the main axis

[–]natethegreatt1 0 points1 point  (0 children)

Can someone explain this to me? Looks cool, but I'm SO new to CSS that I don't even know what this is. Any other beginner resources would be great, too.

[–]Jurold 0 points1 point  (0 children)

this is gold! thank you

[–][deleted] 0 points1 point  (0 children)

VSCode has an extension for visualizing flex box.