21
Thought flexbox was overhyped until I rebuilt a forum thread layout with it
I spent years using floats and clearfixes for everything. Looked at flexbox tutorials and figured it was just another trend that would fade. Then last month I had to fix a forum theme where 12 user profiles in a thread kept stacking wrong on mobile. Floats gave me 4 hours of headache. Switched to flexbox and had it sorted in 20 minutes. The responsive wrapping alone sold me. Has anyone else resisted a CSS tool for years then finally caved?
2 comments
Log in to join the discussion
Log In2 Comments
the_mason14d ago
Yeah flexbox just clicks once you actually use it on a real layout problem.
10
james_clark14d ago
The first time I used it was on a comment section where each post had an avatar, username, timestamp and text. Wrapping those four items with flex-wrap saved me like 50 lines of float cleanup code.
8