T
1

The day I stopped using float-based layouts for good

I used to build every page with floats and clearfix hacks. It worked but it was messy and broke all the time. Then about two years ago I switched over to flexbox for a client's ecommerce site. Now I only use grid for the big stuff and flexbox for everything inside. Has anyone else gone back to an old project and rewritten their CSS from scratch?
2 comments

Log in to join the discussion

Log In
2 Comments
gavin928
gavin92813d ago
Went back to a three year old site last month and almost cried at the float-based trainwreck I used to call code. Spent a whole weekend just rewriting it all in flexbox, felt like I was cleaning up after my drunk self.
5
simon_chen
simon_chen13d ago
@gavin928 wait, you actually had to clean up your own drunk code from three years ago?
4