r/webdev • • Feb 08 '26

Showoff Saturday I never understood justify-content vs align-items so I built an interactive Flexbox guide with smooth animations

Post image

I constantly spent a lot of time with flexbox and I realized how less I really understood from the flexbox concepts, so I made a visual learning tool for CSS Flexbox. I would like to hear your feedback and to see what other concepts I should cover. Maybe I missed some elements, but at least if you give a try you never have to google again "which one is the cross axis".

49 Upvotes

18 comments sorted by

6

u/Favidex Feb 08 '26

Love this! Great work.

→ More replies (1)

2

u/muhammadhazimiyusri Feb 08 '26

That looks awesome!

2

u/websilvercraft Feb 08 '26

Thanks. I want to add another section where you can change all the properties and view them, with additional elements, like showing the main and cross axis

2

u/Liehu_u Feb 08 '26

Awesome! I’ve also struggled to remember all the different details to flexbox so this is super helpful!

2

u/Liehu_u Feb 08 '26

Oh also, I noticed on mobile the boxes sometimes overflow. Maybe lower the number of them or make them thinner?

2

u/websilvercraft Feb 08 '26

Thanks, I'll check it.

→ More replies (1)

2

u/IllStatistician7047 Feb 08 '26

This is brillant! Keep up the good work!

→ More replies (1)

2

u/BusEquivalent9605 Feb 10 '26

This is clear flex propaganda and I am all for it!

maybe you could let users choose css/scss/sass/tailwind output

looks great!

all hail flexbox!

→ More replies (1)

0

u/[deleted] Feb 08 '26

[deleted] — view deleted comment

2

u/websilvercraft Feb 14 '26

Now I published the interactive css grid tutorial. I hope you find useful.

1

u/websilvercraft Feb 09 '26

Funny, I wanted to do something similar for the grid, but more towards a tool, to be able to build layouts.