Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That’s still how I do horizontal centering, FWIW. I guess I have some catching up to do.


Take a look at FlexBox - if you've been around the CSS layout block a few times you might find yourself going "finally - they figured it out!"


Flex has indeed figured it out, I use it for everything now and rarely touch margin: auto unless I'm being lazy or there's a very simple usecase.

But that said Flex still very much classic CSS: the awkward naming schemes, the excessive options for each parameter, the mixing of different options available, etc... it's still very much CSS in all it's quirky dirtiness.

CSS Grids kind of shocked me that they weren't entirely convoluted.

Maybe it's the design-by-committee stuff but even as CSS has gotten better: it still took way too long and it's still very weird. Maybe like JS this will slowly no longer become true, but I'm kind of happy I grew up without Flex/modern CSS because I'm unafraid of that quirkiness.


JustifyContents and AlignItems are like inserting an old USB key: I always get it backwards the first time and have to switch it over.


On that note, did you know there's also justify-items and align-content?


Thanks; I shall. In fact, I’ve been putting it off for lack of browser support, but I suppose that is no longer a valid excuse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: