3 ms·
Frankly, I would probably just use flexbox for any centering use case. It's simple, fast, and straightforward. As far as I understand, flexbox has a pretty well
by retrochameleon 3y ago
Frankly, I would probably just use flexbox for any centering use case. It's simple, fast, and straightforward. As far as I understand, flexbox has a pretty well optimized implementation, so it's not really a performance concern to just throw in another flexbox. Why would you not use it?
- jfengel 3y agoI often don't understand what flexbox is doing when what's inside is itself complicated. I think that fits-content might help, because I haven't tried that.
- retrochameleon 3y agohttps://css-tricks.com/snippets/css/a-guide-to-flexbox/ https://css-tricks.com/snippets/css/a-guide-to-flexbox/ I honestly don't understand why people would find Flexbox hard to understand. Yes, there's a little bit of new terminology, and there's a reason for that. There is a main axis whose orientation can be changed, which affects the interpretation of other properties you use, but most of the time, you won't change it.