4 ms·
The biggest issue with CSS I think for many is.. ..that they haven't looked at it for years and assume it's still as hard to use as it was when it was new. In
by onion2k 6y ago
The biggest issue with CSS I think for many is..
..that they haven't looked at it for years and assume it's still as hard to use as it was when it was new. In any discussion about CSS someone will eventually post that "vertical and horizontal centring is really hard, and that's why CSS is terrible"[1], and all it shows is that their skills are out of date.
[1] Seriously, it's as easy as "display: grid; place-items: center;" these days (if the element has width and height somewhere in the cascade).
- philistine 6y agoI’m no expert here, but I think the model of always adding new syntax doesn’t help people realize that CSS has gotten so much better.
- onion2k 6y agoGiven the choice between making life easier for developers who are too lazy to learn some new syntax and literally breaking the whole of the internet because websites stop rendering correctly with the changed meaning of things, I think I'd side with the adding more syntax. It's not even a hard decision.
- asddubs 6y agonitpick, but if you're just looking to vertically center, you'll have much better browser support (e.g. ie11) doing display:flex; align-items:center; justify-content:center;
- ehaliewicz2 6y agoYou just mentioned another property that interacts with others, how does that remove the "emergent complexity from the interaction of different properties"?