I am Eric A. Meyer. Ask me anything.

View other answers to this thread
Larry Love's photo

Hi Eric,

Thanks for doing this AMA.

What's your opinion on CSS Flexboxes? Do you think we should start using them as a default way of structuring web pages?

Eric A. Meyer's photo

I love them, but no, not necessarily. I’ve used them here and there for rebeccasgift.org, such as in the nav bar, but their limitation is that they’re meant to arrange elements along a line. They’re one-dimensional, in other words, in the specific meaning of that term. Grids, on the other hand, are two-dimensional, and incredibly powerful.

That said, flexbox is pretty much here now, whereas grids are still developing. So using flexbox now makes sense to me. Just don’t become reliant on it, because there’s a whole lot better coming up fast.