14
Can we talk about people who use float instead of flexbox on purpose?
I mean, I get it if you're supporting IE8 or something, but I had to fix a nav menu last week where the guy used float: left on every single link and then wondered why the spacing was all off. Idk, maybe it's just me but I'd rather spend 10 minutes learning flex than 2 hours debugging float quirks.
2 comments
Log in to join the discussion
Log In2 Comments
evan5114d ago
Three years ago I rebuilt a site that used float on all 47 list items and the client cried tears of joy when I switched to flex.
5
wrenh7914d ago
Well that's not really a fair comparison though. Float was literally the only option for layout back before flexbox existed, it wasn't like people chose it for fun. I mean, I remember having to clearfix everything and write five extra lines of CSS just to get a three-column layout working. The real issue is when people still use float for layout today without realizing there are way better tools. Idk, maybe the guy on your nav menu just never got the memo that flexbox is standard now. But acting like anyone who used float back in the day was doing something wrong is kinda harsh. It was basically the only game in town for a long time.
5